title: how to specify jsp file upload storage folder path dynamically in server
body: <p>i wrote file upload programme in jsp in elipse id using <code>cos.jar</code> described in this  <a href="http://webideaworld.blogspot.in/2013/04/woking-with-enctypemultipartform-data.html" rel="nofollow">link</a>
  i got desired output.</p>
  
  <p>-> 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  <strong>my project won't be portable</strong>, how to get rid of this.</p>
  
  <p>path given in servlet is as follows :</p>
  
  <pre><code>MultipartRequest m=new MultipartRequest(request,"E:/workspace/fileUpload/WebContent/uploads/");
  </code></pre>
  
  <p>want to know if there exists any regular expressions or some alternate method like :
  <strong>${project_path}</strong> and also like to know how to Validate uploads using <code>Java scripts</code>.</p>