This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "web.xml --- why to update it??????" Watch "web.xml --- why to update it??????" New topic

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

Tualha Khan
Ranch Hand

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

I agree. Here's the link:
subject: web.xml --- why to update it??????
jQuery in Action, 3rd edition