I would like to upload files to my the server/default/data directory using a simple upload servlet and be able to access them from within my application, but I can’t seem to find how to access it. I tried
getServletContext().getRealPath("data");
but that didn’t help.
to get the absolute path, just do: