Uploading Image From JSP Page
posted 7 years ago
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...