Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Location of web.xml

 
vijay kumarg
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Should I place web.xml directly under WEB-INF but NOT in a folder under WEB-INF?
I have some custom xml files, where should I place them ?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
web.xml must be in the WEB-INF folder. The location of your other files depends on how you propose to use them
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put your custom xml files anywhere ,but if you put this outside WB-INF then the client can directly request that ,so put that within the WB-INF folder.If you want that to be available directly to the web app's classloader then put that in classes folder of WEB-INF.
 
vijay kumarg
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want that to be available directly to the web app's classloader then put that in classes folder of WEB-INF
.

I have an xml file Employees.xml.My application wants access to jsps based on some authentication like his/her role and other authentication info.
I f I have to access to that authentication info in a jsp how I can I able to do this ? Where should I place taht xml file ?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Place it in the classes folder of WEB-INF , you can get a stream out of this files easily as this is available to the webapp's classloader.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic