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

How can we write our own interceptor and map it for action?

791


What are struts in java?

682


Define struts?

818


How many instances of servlet usually run in a struts application ?

752


What are the core classes of struts framework? Explain

739


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

742


What is the purpose of interceptors?

747


Which tag is used to declare constants in struts xml?

675


What is interceptor in Struts2?

739


What is package name in struts xml?

771


What is struts?

754


In struts.xml, what does the attribute "method" stands for in the "action" tag?

724


What is request processor and how does it relates to action mapping?

803


What is struts and why it is used?

702


How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?

2718