aspose file tools*
The moose likes Servlets and the fly likes web.xml --- why to update it?????? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "web.xml --- why to update it??????" Watch "web.xml --- why to update it??????" New topic
Author

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

Tualha Khan
Ranch Hand

Joined: Nov 22, 2000
Posts: 287
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


SCJP2, BEA WLS 6.0, DB2 UDB 7.1
Bharatesh H Kakamari
Ranch Hand

Joined: Nov 09, 2000
Posts: 198
I do not think there is need to update web.xml. I did not update it.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
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:


42
 
 
subject: web.xml --- why to update it??????