title: how to get string parameter from request when using multipart/form-data?
body: <p>i make html page to upload image with text box which has description form it .
  i have use multipart/form-data ; in the dopost at servlet i get file using 
  ServletFileUpload upload = new ServletFileUpload(); </p>
  
  <p>to get string parameter i used request.getparameter();
  but it always give me NULL ???
  HOw can i get it ??</p>
  
  <p>html ::</p>
  
  <pre><code>&lt;form name="filesForm" action="/upload" method="post" enctype="multipart/form-data"&gt;
  
  File : &lt;input type="file" name="file"&gt;  
  &lt;textarea name = "description"  
   rows = "4" cols = "30"&gt;Enter comments here.&lt;/textarea&gt;
  &lt;input type="submit" name="Submit" value="Upload File"&gt;
  </code></pre>
  
  <p>at servlet :</p>
  
  <pre><code>ServletFileUpload upload = new ServletFileUpload(); 
  upload.setSizeMax(500000000);
   FileItemIterator iterator = null;
      try {
          iterator = upload.getItemIterator(req);
      } catch (FileUploadException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } //  to handle contents or 
      // instances  of request.
      FileItemStream item = null;
      try {
          item = iterator.next();
      } catch (FileUploadException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } // get  access each item on iterator.
      java.io.InputStream in = item.openStream(); // allows to read the items contents. 
  
  
      Blob imageBlob = new Blob(IOUtils.toByteArray(in)); // store each item on Blob 
  
  
      // object after converting them to Bytes.
      /*……….
      Note: we are concerned on uploading images files. So the type of files is either (.jpg or gif)
      ……….
      */
      PersistenceManager pm = PMF.get().getPersistenceManager();
      String counter="1";
      ServletOutputStream outt = resp.getOutputStream();
       //match incoming request Content type and invoke appropriate method for handel request
  </code></pre>