tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark B. Indictor" <>
Subject RE: REPOST: Please HELP!: URL Mapping Problems in servlet
Date Wed, 27 Feb 2002 19:54:09 GMT
Thanks, Randy.

I think this will work. I thought of doing this, but thought that there must
be an existing method for extracting this information. This solution, though
workable, seems like a kludge. Is Apache's concept of 'contexts' spec'd? If
so, doesn't it seem logical that there should be a way of determining what
the 'context' is separate from the 'servlet', and visa versa, without
resorting to custom string parsing?

Anyway, back to work. Again, thank you for your help.

    - mbi
Mark Indictor -- Site2 Corporation
Phone:(310)451-3472 FAX:(240)220-6341

-----Original Message-----
From: Randy Layman [] 
Sent: Wednesday, February 27, 2002 10:33 AM
To: 'Tomcat Users List'
Subject: RE: REPOST: Please HELP!: URL Mapping Problems in servlet

	I think that this approach is very close to what you want.  Instead
of lastIndexOf("/") you could do lastIndexOf (or indexOf) getServletName.
Another alternative would be to use lastIndexOf(getPathInfo()) on the
request URI.

	As to why the methods return what they do, its because the spec says


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message