struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raman" <ram...@smartdatainc.com>
Subject Re: How to get application.getRealPath()
Date Fri, 20 Feb 2004 22:55:33 GMT
I got it.. its like 
HttpSession session = request.getSession();
session.getServletContext().getRealPath("/") ;

-- Raman
----- Original Message ----- 
From: "Niall Pemberton" <niall.pemberton@blueyonder.co.uk>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Saturday, February 21, 2004 4:00 AM
Subject: Re: How to get application.getRealPath()


> request.getRequestURL()
> 
> ----- Original Message ----- 
> From: "Raman" <ramang@smartdatainc.com>
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Sent: Friday, February 20, 2004 9:48 PM
> Subject: How to get application.getRealPath()
> 
> 
> Hi All,
> 
> Can any body tell me how can i get 
> application.getRealPath() value
> in my Action's execute method.
> 
> My problem is I want to get present physical path of my application.
> 
> Pls help me..
>  
> -- Raman
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message