please sum1 temme watzz wrong in my procedure.my servlet compiles fine n i've put the class file in C:\apache-tomcat-5.5.26\webapps\ROOT\WEB-INF\classes and when i type the foll in my browser address bar http://localhost:8080/servlet/HelloServlet i get a 404 error.. help me to fix it
Joined: Jun 13, 2005
Did you do the servlet configuration in web.xml file? Please check the below.. Put the servlet entry in web.xml and user servlet mapping for your servlet as "/servlet/HelloServlet"
If you ask questions correctly then I can spend my time answering your question rather than asking you to ask questions correctly.
Enjoy your stay! Dave
Joined: Jul 20, 2008
Hi, if you've put your servlet class directly under ROOT/WEB-INF/classes, make sure that you have modified web.xml and put in the correct servlet entry. Also, I don't think you need to append servlet after localhost:8080 unless you have mapped it that way.
Please also detail your problem a little so that we could help easily.
SCJP 1.5 | SCWCD 5 | SCJP 6.0
[url]http://a2zjava.webs.com[/url] - Online training for Java/JSPs and Servlets/SCJP/SCWCD