tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Paul <antonypau...@gmail.com>
Subject Re: New Babie query - pls pls help me
Date Mon, 13 Dec 2004 13:15:06 GMT
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
<manisha@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


Mime
View raw message