Re: New Babie query - pls pls help me
Argh. Triple hijack! This thread started as "JSP expressions are displayed as string", became "Do not allow browsing the root directory to tomcat", then "problem starting tomcat 5.5/jdk1.3.1_11" and now "New Babie query - pls pls help me". For the sake of the archives and those of us using thread-aware mail clients, please start a new thread instead of replying to a completely unrelated topic. Ta, Jon Antony Paul wrote: You need to create a mapping in web.xml to invoke the servlet. Look at the elements and elements in the example/WEB-INF/web.xml. Create a similar one and restart Tomcat. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New Babie query - pls pls help me
Welcome aboard. The first thing you should do is find yourself a good book or tutorial. There is a good one here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html If you just want a simple servlet example that you can drop into a running instance of Tomcat and run you can find one here: http://simple.souther.us Good Luck -Ben On Mon, 2004-12-13 at 08:09, Manisha Sathe 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]
Re: New Babie query - pls pls help me
You need to create a mapping in web.xml to invoke the servlet. Look at the elements and 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]
New Babie query - pls pls help me
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]