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
Which configuration file is used for storing jsp configuration information in struts?
What do you mean by inner class and anonymous class?
When do I need “struts.jar” on my classpath?
Describe the two types of formbeans.
What is the purpose of form-beans tag in struct-config.xml?
What are the advantages of spring mvc over struts mvc?
How nested beans can be used in Struts applications?
What is dispatchaction?
What is the difference between filters and interceptors ?
Are interceptors and filters different?
What are the aware interfaces in struts2?
What is struts 2 framework in java?
What are interceptors in struts 2?
What is the purpose of @results annotation?
Can a reducer dispatch an action?