tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Hartung" <>
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.


Will Hartung

----- Original Message -----
From: "Felipe Schnack" <>
To: "Tomcat Users List" <>
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
  Must be a way to know that...

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message