This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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
Chandan Ghosh
Greenhorn
Joined: Jun 13, 2005
Posts: 21
posted
0
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
Soniya Ahuja
Ranch Hand
Joined: Jul 20, 2008
Posts: 83
posted
0
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
http://soniyaahuja.webs.com