You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Toby Piper <tp...@CompCraft.com> on 2000/11/22 00:33:43 UTC

Mapping a servlet to a URL

Hi All,

I want to have a login servlet at http://domain/Path-A/servlet/login map to a
URL of http://domain/Path-A/Path-B/ directly w/o using a HTML page. Is this
possible?

I also want to have all of my other servlets for this Application map to
http://domain/Path-A/<servlet-name>

What is the correct way to do this?

I think that I can get it to work by setting the context in
uriworkermap.properties.

Can this also be done via the web.xml file?

Thanks is advance,
Toby


RE: Mapping a servlet to a URL

Posted by Toby Piper <tp...@CompCraft.com>.
Sorry,

This:

> I also want to have all of my other servlets for this Application map to
> http://domain/Path-A/<servlet-name>

Should have been this:

> I also want to have all of my other servlets for this Application map to
> http://domain/Path-A/servlet/<servlet-name>

> -----Original Message-----
> From: Toby Piper [mailto:tpiper@CompCraft.com]
> Sent: Tuesday, November 21, 2000 3:34 PM
> To: Tomcat User Group
> Subject: Mapping a servlet to a URL
> 
> 
> Hi All,
> 
> I want to have a login servlet at http://domain/Path-A/servlet/login map to a
> URL of http://domain/Path-A/Path-B/ directly w/o using a HTML page. Is this
> possible?
> 
> I also want to have all of my other servlets for this Application map to
> http://domain/Path-A/<servlet-name>
> 
> What is the correct way to do this?
> 
> I think that I can get it to work by setting the context in
> uriworkermap.properties.
> 
> Can this also be done via the web.xml file?
> 
> Thanks is advance,
> Toby
> 
>