I am using WAS 5.0 and need to upload image to a folder under WebContent. I use strut upload form and now need to write uploaded image . How can I know from the context of a
servlet the absolute directory path of my web application so that I can save the image file to the right destination? I have to save the images to webcontent because I will need to show it again in my webpage.
Thanks