How to get real path of /WebContent
843842Sep 8 2009 — edited Sep 8 2009Hello,
in one of my filters I save a file to WebContent/images/ on certain conditions. It works well since I hardcoded the absolute path to the WebContent
folder as in /home/myname/projects/appxx/WebContent/images, which is obviously ugly.
How can I get the path?
I tried HttpServletRequest.getRealPath(), but it's not the path I need...
Best regards,
Yves