I am trying to upload an image from jsp page. I can save it to any drive of my system but i am not able to store it inside my project directory structure. I am using struts.
In new file i want the path of my project folder not c drive.
To be a winner first you need to be a begineer.
What is the other path that you tried. If you try a normal relative path, then I think it will be relative to the classes directory in the web-inf directory and I don't think servlets have the permission to modify the web-inf directory due to security reasons. Try using servletContext.getRealpath("relative path") and then see if it works...