In strurt why w use two differnt files web.xml and strut
config.xml?

Answers were Sorted based on User's Feedback



In strurt why w use two differnt files web.xml and strut config.xml?..

Answer / naman patidar

web.xml is an application level configuration file.
struts-config.xml is framework specific file and name of
this file is configured in we.xml under tag

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>

you can change the name of file and location here.

Is This Answer Correct ?    18 Yes 0 No

In strurt why w use two differnt files web.xml and strut config.xml?..

Answer / anil

web.xml is effect for application level, and struts-
config.xml file is effect for struts frame/work level.

Is This Answer Correct ?    11 Yes 2 No

Post New Answer

More Struts Interview Questions

What is the purpose of @conversion?

0 Answers  


What is apache struts cve 2017 5638?

0 Answers  


What is difference between spring and struts?

0 Answers  


List the important attribute and elements of action mapping under struts.

0 Answers  


How can we handle exceptions thrown by application in Struts2?

0 Answers  






How you will make available any message resources definitions file to the struts framework environment?

0 Answers  


What are the steps used to setup dispatch action?

0 Answers  


What is container struts2?

0 Answers  


what is the purpose of action servlet and action?

5 Answers  


What is the purpose of global-forwards tag in struct-config.xml?

0 Answers  


When wil use singleton class in Struts

7 Answers  


diffrence between dispatch action and lookupdispatch action write simple web appliction (insert records in database)

8 Answers   Athena Health Care, Symphony, TCS,


Categories