i am new to servlet technology. i have written my first servlet program and placed it in web-inf/classes folder in tomcat. and my html page in root directory. the issue is whether i should configure web.xml file or not?(although i configured it, i got 404 error, saying that the particular servlet file is not found). i have heard my friend saying that when we place html file in root directory, we do not need to configure xml file. why is that so?? can someone explain please..
Hi, You must configure the Servlet in web.xml file. Thanks, Hari
Joined: Aug 03, 2008
hi harinath, i have configured my xml file but got the err 404 as i have mentioned above. how should i fix this? my xml file is as follows,
here 'vec' is the servlet prog name and the class name itself, whose class file is been placed in classes folder inside web-inf dir. is there any err in my xml file..(i always go wrong in configuring xml file). please provide some links or explain me if possible. thanks in advance.