You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Manisha Sathe <ma...@starhub.net.sg> on 2004/12/13 14:09:07 UTC
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: New Babie query - pls pls help me
Posted by Ben Souther <bs...@fwdco.com>.
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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: New Babie query - pls pls help me
Posted by Jon Wingfield <jo...@mkodo.com>.
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
> <servlet> and <servlet-mapping> elements in the
> example/WEB-INF/web.xml. Create a similar one and restart Tomcat.
>
> rgds
> Antony Paul
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: New Babie query - pls pls help me
Posted by Antony Paul <an...@gmail.com>.
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
<ma...@starhub.net.sg> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org