I have a module for creating images dynamically, which is not a servlet. I'm trying to store the images on web server and return their URLs back to client. My question is how can I get to know the path of WebContent from my module. I hold a reference to the HTTPRequest, does it help? Or should I treat it a same process as client uploading images to server?