• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we change the location of web.xml file?  RSS feed

 
pranjal mishra
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I don't know whether its a stupid question or not, but I am a little bit curious about this.
So my question is can we change the location of a deployment descriptor in a web application from WEB-INF to some other place.
Can we move it outside the WEB-INF or can we put it inside any subdirectory of WEB-INF.

If yes then where should we have to mention it, so the container gets to know about it.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66152
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.
 
ujjwal soni
Ranch Hand
Posts: 405
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you want to change location for web.xml ?
 
Sandeep Swaminathan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're not allowed to change. Its the directory structure. Only then your WEB CONTAINER can identify and run your web app accordingly..
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!