struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moritz Björn-Hendrik, HH" <Bjoern.Mor...@fja.com>
Subject AW: OFFT: base for file reading in WEB apps
Date Thu, 22 Nov 2001 14:42:00 GMT
Hi Gundars,

you can get the Base-Path by using the
getServletContext().getRealPath("")-Method in the ActionServlet.

Björn

> -----Ursprüngliche Nachricht-----
> Von:	Gundars Kulups [SMTP:gundars.kulups@dati.lv]
> Gesendet am:	Donnerstag, 22. November 2001 15:12
> An:	struts-user@jakarta.apache.org
> Betreff:	OFFT: base for file reading in WEB apps
> 
> Hi!
> I know that this is totally off topic, but what is file base for file 
> operations for classes running in servlet container (Tomcat in my case). 
> For example if I have app.properties file in WEB-INF directory, what
> should 
> be the path I need to use to open this file?
> 
> WBR,
> 
> Gundars Kulups
> Project manager
> A/S Dati
> Phone: +371-7067713
> Mobile: +371-9466055
> Fax: +371-7619573
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>

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


Mime
View raw message