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


Please Help Members By Posting Answers For Below Questions

Can we use struts and spring together?

761


How can we handle exceptions thrown by application in Struts2?

735


What is the use of namespace in action mapping in Struts2?

810


Are interceptors and filters different?

777


How can link tag’s action attribute be used?

730


What is the forward action utilized for?

793


Who makes the struts?

741


What is difference between spring and struts?

724


what is ACID test for fresh engineers??what is the pattern??

2593


Explain struts.devmode?

770


What does the term struts mean?

756


How to use dispatchaction?

794


What are the classes used as part of struts framework ?

733


What is dispatch action class?

858


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

805