In my eclipse project, I created a folder "calc" under public (public/calc) and I imported a few files in there.
In hosted mode, how do I open a file in this directory (public/calc) from within my service servlet? In web mode, I can get the real path to the folder using getServletContext().getRealPath()+"/calc". The problem is that doing so in hosted mode will give me
$myprojectroot/tomcat/webapps/ROOT/calc
which does not exist.
Colin