You need to create a mapping in web.xml to invoke the servlet. Look at the elements <servlet> and <servlet-mapping> elements in the example/WEB-INF/web.xml. Create a similar one and restart Tomcat.
rgds Antony Paul On Mon, 13 Dec 2004 21:09:07 +0800, Manisha Sathe <[EMAIL PROTECTED]> wrote: > Hi, > > I am totally totally new to Servlet/Tomcat. I wrote a very simple > "HelloWorld" servlet. I could compile it and could create the > HelloWorld.class file. > > But how to test it thr Tomat web server ? I put the class inside servlet > example dir > C:\jakarta-tomcat-5.0.28\webapps\servlets-examples\WEB-INF\classes > But whe tried to run it like > http://localhost:8080/servlets-examples/servlet/HelloWorld > > always i get description The requested resource > (/servlets-examples/servlet/HelloWorld) is not available. > > I tried to start-stop/reload the tomcat servlet-example but still the same, > i understand i need to change some files - but can any body tell stepwise > instructions ? Pls pls help me I am stuck.... > > Thanks in advance > Manisha > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
