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 are Struts properties?
Why was reload removed from struts (since 1.1)?
what are the actions in struts?
How data transfered from one formbean to another formbean?
What is the purpose of @stringlengthfieldvalidator annotation?
Explain the difference between jakarta struts and apache struts?
What is the front controller in struts2?
In how many ways duplicate form submission can occurs?
What does it cost to replace struts?
Are interceptors thread safe?
how does request processor relates to action mapping?
For a single Struts application, can we have multiple struts-config.xml files?