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.

--
Mikolaj Rydzewski <[EMAIL PROTECTED]>

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to