>From the servlet api javadoc:
java.lang.String getPathInfo()
Returns any extra path information associated with the URL the
client sent when it made this request.
java.lang.String getPathTranslated()
Returns any extra path information after the servlet name but
before the query string, and translates it to a real path.
The extra path information is the path information appended to the url
after the servlet name. For instance, if your servlet is accessed as
/web-info/MyServlet, this url has extra path information:
http://www.server.com/web-info/MyServlet/here/is/extra/path/infomation
TaNiA wrote:
>
> Hi all,
>
> I was trying to find the physical path of a file which was kept on a Unix
> box from a servlet.
>
> I searched through the archives and tried the solutions..
> I finally found one which worked , which was using the
> ServletContext.getRealPath()
>
> however, I'm wondering why didn't the follwing work?
> request.getPathInfo()
> request.getPathTranslated()
>
> I get null returned on both instances.
> Could someone explain why please?
> (I'm using apache and Jserv on a Unix box)
>
> thanks in advance,
> tania
>
> ___________________________________________________________________________
> 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
___________________________________________________________________________
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