tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Lubke <Ryan.Lu...@Sun.COM>
Subject RE: Quick Servlet Question
Date Thu, 29 Nov 2001 21:53:38 GMT
What about ServletContext.getRealPath()?


On Thu, 2001-11-29 at 16:31, Brandon Cruz wrote:
> Exactly, but that method seems to be deprecated.
> 
> 
> 
> -----Original Message-----
> From: DONNIE HALE [mailto:DHALE@longaberger.com]
> Sent: Thursday, November 29, 2001 3:26 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Quick Servlet Question
> 
> 
> You mean like: HttpServletRequest.getRealPath("/");
> 
> Donnie
> 
> 
> >>> bcruz@norvax.com 11/29/01 04:06PM >>>
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message