tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Hartung" <wi...@msoft.com>
Subject Re: servlet URL
Date Fri, 07 Feb 2003 20:21:07 GMT
That only works when the requester is the servlet itself. Also, just because
you have the name of a servlet doesn't mean you know a valid URL for that
servlet, as they don't have to match.

The key here, I think, is that in the past servlets were able to "see" other
servlets within the webapp, but today I think that access is limited.

So, if you are in ServletA and want the URL to ServeltB, there's no obvious
way find that information.

Regards,

Will Hartung
(willh@msoft.com)

----- Original Message -----
From: "Sean Dockery" <sean@sbdconsultants.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Friday, February 07, 2003 11:05 AM
Subject: Re: servlet URL


> HttpServlet.getServletName() would seem like the logical choice.
> --
> Sean Dockery
> sean@sbdconsultants.com
> Certified Java Web Component Developer
> Certified Delphi Programmer
> SBD Consultants
> http://www.sbdconsultants.com
>
>
> "Felipe Schnack" <felipes@ritterdosreis.br> wrote in message
> news:1044644277.1304.48.camel@desenv1.ritterdosreis.br...
>   How I retrieve the URL an HttpServlet instance is mapped to?
>
> --
>
> Felipe Schnack
> Analista de Sistemas
> felipes@ritterdosreis.br
> Cel.: (51)91287530
> Linux Counter #281893
>
> Centro Universitário Ritter dos Reis
> http://www.ritterdosreis.br
> ritter@ritterdosreis.br
> Fone/Fax.: (51)32303341
>
>
>
>
> ---------------------------------------------------------------------
> 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