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
How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?
What is the struts in java?
What are different ways to create Action classes in Struts2?
What is meant by custom tags?
What do you mean by actionmapping?
What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?
What do you mean by inner class and anonymous class?
What configuration changes are required to use Tiles in Struts?
Explain about the
What are the two different types of validations that the validator framework supports?
Can we handle exceptions in Struts programmatically?
Do I have to credit struts on my own website?
What are the struts2 error message keys that can come during file uploading process?
Name some of the features of struts2?
How to display validation errors on jsp page?