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
([EMAIL PROTECTED])

----- Original Message -----
From: "Felipe Schnack" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to