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

What is the purpose of @results annotation?

716


How we can configured action mapping in struts?

581


How can we group related actions in one group in Struts?

561


What's mvc pattern ?

587


What is the purpose of @doublerangefieldvalidator annotation?

556






Explain about struts?

555


What are the features of struts?

575


Explain integrate log4j in struts2 application?

568


What is struts in java with example?

508


What does execandwait interceptor?

550


How does one create an action in struts 2?

526


What are the life cycle methods of interceptor?

522


How can forward action be used to restrict a strut application to mvc?

521


What is value stack?

625


What do you mean by actionform?

581