can we change the location of struts-config.xml file?
Answer Posted / 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 |
Post New Answer View All Answers
What’s the difference between struts and turbine? What’s the difference between struts and espresso?
What are result types in struts?
What is the purpose of @customvalidator annotation?
What is the role of action class in struts?
What is the purpose of @element?
What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?
What validate() and reset() method does ?
How many instances of servlet usually run in a struts application ?
What is the purpose of execute() method?
In struts.xml, what does the attribute "method" stands for in the "action" tag?
Explain the core end goal while using java struts?
What is the different actions available in struts?
Explain about how requests from the client are sent?
What is the purpose of @results annotation?
How can you create your custom interceptor in struts 2?