You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Purcell, Scott" <sp...@dcspremedia.com> on 2001/05/18 22:59:31 UTC
Register a Servlet?
Hello,
How do you register a servlet under the tomcat?
My book says to register the servlet (page 39) of Marty's book.?
Does anyone know what they mean?
Thanks
Scott Purcell
RE: Register a Servlet?
Posted by Filip Hanik <ma...@filip.net>.
yes, you can create an alias for it in your web.xml file.
for example
<servlet>
<servlet-name>
snoop
</servlet-name>
<servlet-class>
com.servlet.SnoopServlet
</servlet-class>
</servlet>
the servlet can now be accessed using the URL
http://localhost:8080/examples/snoop
~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
filip@filip.net
www.filip.net
> -----Original Message-----
> From: Purcell, Scott [mailto:spurcell@dcspremedia.com]
> Sent: Friday, May 18, 2001 2:00 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: Register a Servlet?
>
>
> Hello,
> How do you register a servlet under the tomcat?
>
> My book says to register the servlet (page 39) of Marty's book.?
>
> Does anyone know what they mean?
>
> Thanks
>
> Scott Purcell
>
>