hi there.. i try to upload an image to the server path.. and it was success.. the problem is.. when i reclean and build the web in netbeans.. the image is removed automatically. this caused by the image that uploaded saved in temporary folder (c:/.../project/build/web/img)and this path is found by getServlet().getServletContext().getRealPath("/")+"img/". and then i try to copy manually to c:/../project/web/img (without folder build) that makes file saved permanently.. my question is.. how does we can make file automatically saved permanently...?? or how to configure the path that we've got from getRealPath() ?? please..help me... thanx b4...
View All Comments
| View Tutorial