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 is difference between actionform and dynaactionform?

0 Answers  


struts 1.3 features?

1 Answers   Integra, Zensar,


What is controller in struts2?

0 Answers  


What are the various struts tag libraries?

0 Answers  


What is Request Dispatcher and What is reuest Processor??

2 Answers  






In how many ways duplicate form submission can occurs?

0 Answers  


Which design pattern the interceptors in struts2 is based on?

0 Answers  


What are the ways in which duplicate form submission can occur?

0 Answers  


Explain about struts relation to html tags?

0 Answers  


How to depoly your struts application in JBOSS

1 Answers   HP, NuWare, Satyam, Wipro,


Which technologies can be used at view layer in struts?

0 Answers  


In which order struts framework searches for a message bundle?

0 Answers  


Categories