R
royG
forgive me if this is a silly doubt.But i am a newbie to tomcat
I was trying out the examples in chapter2 of java servlet&JSP cookbook
by Bruce W. Perry.The section of 'Deploying an Individual Servlet on
Tomcat' tells to
1.create a servlet (i made cookbook.SampleServlet.java that has doGet
(..) method taking user input into some textfields and a doPost(..)
that prints those input values) .
2.copy the cookbook/SampleServlet.class into webapps/ROOT/WEB-INF/
classes directory of tomcat
3.start tomcat by running startup.bat
but then the book says,the servlet can be invoked by
http://localhost:8080/servlet/cookbook.SampleServlet
I tried that,but am getting 404 error!
How can i call the servlet ? I know how to do it thru web.xml using
urlpattern .But i want to invoke this by calling the Servlet name
directly.
Pls help..
thanks
roy
I was trying out the examples in chapter2 of java servlet&JSP cookbook
by Bruce W. Perry.The section of 'Deploying an Individual Servlet on
Tomcat' tells to
1.create a servlet (i made cookbook.SampleServlet.java that has doGet
(..) method taking user input into some textfields and a doPost(..)
that prints those input values) .
2.copy the cookbook/SampleServlet.class into webapps/ROOT/WEB-INF/
classes directory of tomcat
3.start tomcat by running startup.bat
but then the book says,the servlet can be invoked by
http://localhost:8080/servlet/cookbook.SampleServlet
I tried that,but am getting 404 error!
How can i call the servlet ? I know how to do it thru web.xml using
urlpattern .But i want to invoke this by calling the Servlet name
directly.
Pls help..
thanks
roy