This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How application server loads struts.xml in context?

 
Manuj Roy
Greenhorn
Posts: 7
Java MyEclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
Java MyEclipse IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic