Hi,
I'm working on an intranet site project.I've to write a
servlet to store some temp files on the machine.
For that i need to get the temp folder location at run time. I want to use relative path for that.
So lets say for my sandbox setup, the application is deployed on
tomcat in the location:
C:/projects/server/apache-tomcat-5.5.23/webapps/fstkservices/
and i want to save the temp files in a folder tempupload under fstkservices. So my question is that how do i get the above location in my servlet code. Is there any API to get the root location of where the application is deployed?