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

Is struts mvc framework?

0 Answers  


How to explain struts work flow

12 Answers   CSS, iFlex, iGate, mpower, TCS,


what is the difference between ServletContext and ServletConfig?

4 Answers  


What is the purpose of @element?

0 Answers  


what is frame work in struts?

3 Answers   Infosys,


What is the purpose of execute() method?

0 Answers  


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

0 Answers  


What is purpose of execandwait interceptor?

0 Answers  


how to connect from struts to database through hibernet and where u can modify the class

0 Answers   Polaris,


Which configuration files are used in struts?

0 Answers  


What is role of action class?

0 Answers  


Are struts still used?

0 Answers  


Categories