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

If the framework doesn’t do what I want, can I request that a feature be added?

495


Does apache tomcat use struts?

502


What is validate() and reset() functions?

557


What is the front controller in struts2?

495


What configuration files are used in struts?

525






What is the purpose of redirect result type?

568


Who wrote struts?

546


What are the major differences between html tags and strut specific html tags?

515


What is apache struts cve 2017 5638?

539


Can you explain value stack?

536


in struts how to use hibernate with struts>

1823


How to use dispatchaction?

570


What do you mean by tiles in struts?

536


What’s the difference between struts and espresso?

498


Explain how can we upload files in struts2 application?

617