So I have a file structure like below
http://dl.dropbox.com/u/322696/FolderPath.JPG
When I start the Tomcat Server, I'm trying to figure out where it's root folder begins with if I were just to start the server in the server window and access a jsp page within the jsp folder. I need to navigate to images/banner/name.jpg (trying to make an image file). I've set the servers context to '/projectname' (the black rectangle next to [repository]). I've tried like:
File image = new File("../images/banner/name.jpg"); //If its root was the jsp I accessed
No dice. Is there a method I could run to determine what the relative path should be?