title: Why I can't get access to parameters from a request after upload a file in jsp?
body: <p>I'm using jsp and a servlet to do this.</p>
  
  <p>I have a contact form that send a email with some data (name, subject, question,contact email etc) and a file.</p>
  
  <p>when I submit the form, and get the servlet response only the first thing is returned.</p>
  
  <pre><code>String file= fileUpload(request); //upload the client's file and return the absolute      path of the file in the server
  //testing the rest of parameters
   out.println("REQUEST LIST"
                "\n"   request.getParameter("name")
                "\n"   request.getParameter("mail")
                "\n"   request.getParameter("subject")
                "\n"   request.getParameter("ask")
                "\n");
  </code></pre>
  
  <p>In this order the file is uploaded succesfully, but the other parameters (name, mail etc) are null.</p>
  
  <hr>
  
  <p>In the order below, the parameters are ok, they return the data correctly. But the file is not uploaded.</p>
  
  <pre><code>//testing the rest of parameters
  out.println("REQUEST LIST"
                "\n"   request.getParameter("name")
                "\n"   request.getParameter("mail")
                "\n"   request.getParameter("subject")
                "\n"   request.getParameter("ask")
                "\n");
  String file= fileUpload(request); //upload the client's file and return the absolute      path of the file in the server
  </code></pre>
  
  <hr>
  
  <p>How can I have both?
  Thanks!</p>