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

What is the purpose of @key annotation annotation?

588


What is filter dispatcher in struts?

528


What is a custom tag?

534


Explain how can we upload files in struts2 application?

614


What is the purpose of action-mappings tag in struct-config.xml?

582






What is the purpose of form-beans tag in struct-config.xml?

542


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

622


How does struts work?

541


Can you give an overview of how a struts application flows?

522


Do we need to pay the struts if being used in commercial purpose?

541


What is difference between actionform and dynaactionform?

586


Why we use struts in java?

507


1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they

2749


Which configuration files are used in struts?

516


What is the purpose of @customvalidator annotation?

567