title: How to upload image to a specified project folder using servlet?
body: <pre><code>&lt;body&gt;
      &lt;form method="POST" action="FileUpload" enctype="multipart/form-data" &gt;
          File:
          &lt;input type="file" name="fileSrc"  &gt; &lt;br/&gt;
          &lt;input type="submit" value="Upload" name="upload" &gt;
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>This is my UploadImg.jsp ,when i click on Upload it goes to FileUpload.java where the uploaded image has to store in my specified folder AppImages,how can i do this? thanks for your help.</p>