: Access local path of servlet
...
If you have direct access to the filesystem, why do you need to request the
file from another piece of 3rd-party software?
...
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ruediger,
On 3/19/12 10:39 AM, Gubler, Ruediger wrote:
> we are using a third party software which accesses files local on
> the server. We must send in our request the "local path" to this
> files (e.g. D:\myserver\webapps\data\thefiles\). My idea wa
application can add the rest of the path because this is a fixed part.
Yours Rüdiger
-Ursprüngliche Nachricht-
Von: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Gesendet: Montag, 19. März 2012 15:31
An: Tomcat Users List
Betreff: RE: Access local path of servlet
>
> From: Gubler, Ruediger [mailto:rgub...@init-ka.de]
> Subject: Access local path of servlet
> can I get the local webapps path in a servlet?
Not sure what you mean by "local webapps path". If you mean the path in the
local file system, you should be aware that the servlet
servletContext.getRealPath("dummy.htm"), but make sure the content
is not being made available from a |.war| archive without unpacking it.
Original-Nachricht
Betreff: Access local path of servlet
Von: Gubler, Ruediger
An: users@tomcat.apache.org
Datum: 19.03.2012 15:
Hello,
can I get the local webapps path in a servlet?
Yours Rüdiger