This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web.xml --- why to update it??????

 
Tualha Khan
Ranch Hand
Posts: 287
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
Hey,
I am using tomcat+apache on winNT. I was able to successfully compile and run my servlet after keeping the .class file in
/web-apps/root/web-inf/classes/ directory. Can anybody tell, what is the need to update the web.xml file. I did not update this file to run my servlets residing in this directory.
Thanks a lot.
Bye,
Tualha Khan
 
Bharatesh H Kakamari
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think there is need to update web.xml. I did not update it.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
web.xml serves many purposes. You can for example put things like servlet init-params in it, or an alternate alias for the servlet directory (so, replace the default /servlet/ with something else).
Check the DTD for all the possible things you can put in, there are quite a few (which may not all be supported by all appservers, maybe).
example:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic