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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]