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
posted
0
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
posted
0
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: