Try this, File myFile = new File("yourServletName"); String myPath = theFile.getAbsolutPath();
Hong Brandon Cruz wrote: > Is there a way to use the request object or anything else to get the real > path to a folder that the servlet resides in? I want it to return a string > like... > > /usr/local/apache/vhosts/myhost.com/httpdocs > > Have been looking with no luck and know that someone on this list can tell > me if this is possible or not. > > Thanks! > > Brandon > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>