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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are interceptors thread safe?

773


Difference between html tags and struts specific html tags

694


Explain struts.devmode?

763


What is actioncontext?

755


What is the use of reset method of ActionForm class?

797


What is the purpose of execute() method?

814


What are interceptors in struts 2?

788


Describe the mvc on struts?

741


How duplicate form submission can be controlled in struts?

889


What is the purpose of redirect result type?

781


Mark the differences between html tags and strut specific html tags.

786


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

753


How we can configured action mapping in struts?

779


How to display validation errors on jsp page?

813


What are struts in java?

694