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 the use of Struts.xml configuration file?

0 Answers  


What is the purpose of @conversion annotation annotation?

0 Answers  


What is actionmapping?

0 Answers  


Why it called struts?

0 Answers  


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

0 Answers  






Does apache struts run on windows?

0 Answers  


What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?

0 Answers  


What is the difference between forwardaction and includeaction?

0 Answers  


how to implement singletun design patteren in struts?

5 Answers   HCL,


What are the conditions for actionform to work correctly?

0 Answers  


how handle when client send multiple request at atime for single servlet

5 Answers   Aditya Birla, IBM,


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

0 Answers  


Categories