>>> "Heyman, Zol" <[EMAIL PROTECTED]> 25-Jun-01 10:48:36 PM >>>
Why is the getContextPath() method only available
from the HttpServletRequest object?
Because it only gets the context-path part of a request URI. The part
of the requested path that matched the context-path.
Although the result is the same as getting the mapped path of the
context the semantics of the method are different.
It would be convenient to have this value available
from the HttpServlet object without referencing the
request object.
This is broadly against the API philosophy. Similarly there is no way
to get the mapped path of a servlet, except as the matched part of a
reqyest.
Nic Ferrier
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html