can we change the location of struts-config.xml file?

Answers were Sorted based on User's Feedback



can we change the location of struts-config.xml file?..

Answer / rams

yes, we can change strts config.xml file location .
If we change the location of strtus config.xml file , we need to configure the file location information inside web.xml.

eg: <web-app>
<servlet>
.
.
.
<init-param>
<! we need to place strts-config.xml file here ..>
<param-name> config </param-name>
<param-value> /path of file that we need to configure /strtus-config.xml </param-value>
</init-param>


</servlet>
</web-app>

Is This Answer Correct ?    30 Yes 1 No

can we change the location of struts-config.xml file?..

Answer / noname

Yes we can change but we have to include its path in
web.xml file under WEB-INF folder

Is This Answer Correct ?    11 Yes 0 No

Post New Answer

More Struts Interview Questions

What are the steps required for setting up validator framework in struts?

0 Answers  


we have 7 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. when we starting providing data in jsp pages when we are at 3rd jsp at that time sessions timeout where the data will be store which we r provide in last two jsps?

2 Answers  


Why actionservlet is singleton in struts?

0 Answers  


What happens when Two users requests for same action class? How the threads are controlled?

4 Answers  


when we enter the data in the form how it is stored in formbean class setter and getter methods?

1 Answers   TCS, Wipro,






what is difference between <bean:write> and <bean: message> tag

2 Answers   CTS, IBM,


What are the components of struts framework?

0 Answers  


What does the term struts mean?

0 Answers  


List some struts tag libraries?

0 Answers  


collection framework hirarchy?

5 Answers  


How interceptor works in struts 2?

0 Answers  


What is struts validator framework?

0 Answers  


Categories