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 |
Why should we go for struts framework?
What is the purpose of @action annotation?
Explain architecture of struts2?
What is the main difference between Mvc1 and Mvc2 Architecture??
7 Answers IBM, Ness Technologies,
What is the purpose of @before?
Name the different types of actions found in struts.
How interceptor works in struts 2?
What is the difference between requestaware and servletrequestaware interface?
How do you know what to give for the "path " under in struts-config.xml ?
Are actions thread safe?
how to write my own Action servlet by extending pre-defined Action servlet in struts config.
How to pass runtime Parameter in Struts1.2?