File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How application server loads struts.xml in context? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How application server loads struts.xml in context?" Watch "How application server loads struts.xml in context?" New topic
Author

How application server loads struts.xml in context?

Manuj Roy
Greenhorn

Joined: Feb 17, 2011
Posts: 7

Hi,

Can someone please help me understand how the application server gets to know about the location of struts.xml and whether it has to load it or not.

Cheers!
Manuj
amarjeet teotia
Greenhorn

Joined: Jun 02, 2006
Posts: 1
Manuj Roy wrote:Hi,

Can someone please help me understand how the application server gets to know about the location of struts.xml and whether it has to load it or not.

Cheers!
Manuj


Hi Manuj,

basically in struts 1.x it is picked from WEB INF folder automatically and in 2.x we put it in classpath so that server loads it at start up...
cheers
Amar
Manuj Roy
Greenhorn

Joined: Feb 17, 2011
Posts: 7

Hi Amarjeet,

Thanks for your response, I got your point, but i have an attached question does this mean that when we specify "struts" in web.xml as filter mapping - it guides the application server to pick up struts related configuration in the context?

Regards,
Manuj
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How application server loads struts.xml in context?
 
Similar Threads
restarting the server
do we need to restart to effect the change in struts.xml
Struts2 basic doubts..
Struts2 struck with a issue of 404
STRUTS 2 : How to explicitly specify struts.xml in web.xml ?