can we change the location of struts-config.xml file?
Answers were Sorted based on User's Feedback
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 |
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 |
What is the use of Struts.xml configuration file?
What is the purpose of @conversion annotation annotation?
What is actionmapping?
Why it called struts?
Which interceptor is responsible for mapping request parameters to action class Java Bean properties?
Does apache struts run on windows?
What are the differences between Struts1 and Struts2 or how Struts2 is better than Struts1?
What is the difference between forwardaction and includeaction?
how to implement singletun design patteren in struts?
What are the conditions for actionform to work correctly?
how handle when client send multiple request at atime for single servlet
How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?