> From: Johnny Kewl [mailto:[EMAIL PROTECTED]
> Subject: Re: Relative internal links
>
> Have a look at this function...
>     getServletContext().getRealPath("/");
>
> Thats a nice way to find out where you are....

Only if you're running in an environment that supports the call.  If you're on 
a device without an accessible file system, or if the webapp is coming out of 
an unexpanded .war file, you're out of luck.  Depending on getRealPath() 
indicates you've made a serious design error somewhere back up the road.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to