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 19:34:07 GMT
I see the problem and I think you're stuck having to code it someplace.

The problem is that a Servlet can be mapped to multiple URLs, and the
Servlet itself is really not aware of this mapping as it's maintained in the
actual container.

So, the only way to identify a Servlet within the container is, essentially,
by its mapping.

In fact, I can't even think of a portable way to actually read the web.xml
file, as its not in any of the conventional spots for resources.

I think you're stuck.

Regards,

Will Hartung
(willh@msoft.com)

----- Original Message -----
From: "Felipe Schnack" <felipes@ritterdosreis.br>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Friday, February 07, 2003 11:21 AM
Subject: RE: servlet URL


  Yes, I know it's a singleton... but you mean I should have another
config file specifying my servlet's URL? Well, I could do that, but I
don't think it's a good idea, after all I already have this data on
web.xml...
  Must be a way to know that...




---------------------------------------------------------------------
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