i wrote file upload programme in jsp in elipse id using cos.jar
described in this link
i got desired output.
-> now i want to specify the path folder to store image in server to be dynamic, because if this path is fixed type to particular directory in the server my project won't be portable, how to get rid of this.
path given in servlet is as follows :
MultipartRequest m=new MultipartRequest(request,"E:/workspace/fileUpload/WebContent/uploads/");
want to know if there exists any regular expressions or some alternate method like :
${project_path} and also like to know how to Validate uploads using Java scripts
.