tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Quilici <r.quil...@chem.usyd.edu.au>
Subject Re: getRealPath and war file
Date Wed, 09 Aug 2006 08:32:32 GMT
Mikolaj Rydzewski wrote:
> Romain Quilici wrote:
>> However, Tomcat creates automatically a directory under webapps to 
>> contain war file contents, so I am wondering if Tomcat is using the 
>> newly generated directory to load the application(1st case) or
>> the war file (2nd case).
>> In the first case context.getRealPath("/") should return the path to 
>> the newly generated directory.
>> In the second case, why does Tomcat generate the directory to contain 
>> war file contents?
> I.e. for performance reasons.
>
> One should use context.getResourceAsStream() to read files from both 
> war or expanded directory.
>
Hi all,
thanks for the answer.
My pb is more to write in a given directory(must be accessible with a 
url), than to read.
And I would prefer this directory to be located in my webapp.
Regards
Romain


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message