Is there a way of saying I want to upload images to my webapp's images folder, without having to put the full folder path in? Because I don't know what the full path will be.
On my machine it's C:\server\Tomcat\webapps\myapp\images but on a Test machine which is Linux it will probably be something like /usr/local/tomcat/webapps/myapp/images
So what I'm looking for is a way I can just hardcode the /images/XXX bit and use 'something' so that the app knows to put it under it's own folder.
i have looked at the getContext() and things like that, but it just ends up creating a folder at C: like: C:\myapp/xyz...