This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How application server loads struts.xml in context?  RSS feed

 
Manuj Roy
Greenhorn
Posts: 7
Java MyEclipse IDE Oracle
  • 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
  • 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
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!