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 struts framework?

0 Answers  


what is tiles in struts?

6 Answers  


Can we have multiple struts config files in a single web app?

0 Answers  


Which design pattern the interceptors in struts2 is based on?

0 Answers  


What is spring and struts in java?

0 Answers  






what is BUSINESS DELIGATE PATTERN,DAO,VO,DTO?

6 Answers   BOB Technologies, TCS,


What are disadvantages of Struts?

0 Answers  


Why should we go for struts framework?

5 Answers   Accenture,


In which method of action class the business logic is executed?

0 Answers  


How can we display all validation errors to user on jsp page?

0 Answers  


What is spring hibernate and struts in java?

0 Answers  


how to write the configuration file of struts application if any one had simple struts application please it to me

1 Answers  


Categories