struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davide Bruzzone" <Davide.Bruzz...@ngt.com>
Subject RE: Opening/reading a file from a Struts application...
Date Tue, 29 Jul 2003 18:23:41 GMT
Thank you...

I'll give it a try...

Cheers...

Dave

-----Original Message-----
From: Jarnot Voytek Contr AU HQ/SC [mailto:Voytek.Jarnot@MAXWELL.AF.MIL]

Sent: Tuesday, July 29, 2003 12:02 PM
To: 'Struts Users Mailing List'
Subject: RE: Opening/reading a file from a Struts application...


-----Original Message-----
From: Jarnot Voytek Contr AU HQ/SC 
Sent: Friday, June 27, 2003 11:53 AM
To: 'Struts Users Mailing List'
Subject: RE: getting a file path to /WEB-INF from a HttpSession


try 

request.getSession(false).getServletContext().getRealPath("/WEB-INF/..."
))

or, in an action you could do

getServlet().getServletContext().getRealPath("/WEB-INF/...");

---------------------------------------------------------------------
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