title: Cannot pass parameters to servlet when using multipart/form-data enctype in form
body: <p>I m trying to pass formatted text from a text-editor that has been embedded in my jsp file. I m using enctype="multipart/form-data" in my form tag. I can pass the parameters to underyling servlet when using the default enctype. But I get null when using the multipart/form-data enctype in my servlet. </p>
  
  <p>My form </p>
  
  <pre><code>&lt;form action="pdfGenServlet" method="post" enctype="multipart/form-data"&gt;
                      &lt;!-- input notes title--&gt;
                      &lt;div class="form-group"&gt;
                          &lt;div class="input-group"&gt;
                              &lt;input type="text" class="form-control" placeholder="Title of the notes" name="title"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;!-- input notes description--&gt;
                      &lt;div class="form-group"&gt;
                          &lt;div class="input-group"&gt;
                              &lt;input type="text" class="form-control" placeholder="Enter short description" name="description"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                      &lt;div class="form-group"&gt;
                        &lt;textarea name="content" id="myEditor"&gt;&lt;/textarea&gt;
  
                       &lt;div id="button-panel" class="panel panel-default"&gt;
                            &lt;p&gt;
                                &lt;button type="submit" class="btn btn-primary "&gt;&lt;span class="glyphicon glyphicon-plus"&gt;&lt;/span&gt;&lt;strong&gt; Create Note&lt;/strong&gt;&lt;/button&gt;
                                &lt;button class="btn btn-primary" type="reset"&gt;&lt;strong&gt;Reset&lt;/strong&gt;&lt;/button&gt;
                            &lt;/p&gt;&lt;!-- buttons --&gt;
                       &lt;/div&gt;&lt;!-- panel Button --&gt;
  
                      &lt;/div&gt;
  
                  &lt;/form&gt; 
  </code></pre>
  
  <p>My pdfGenServlet.java</p>
  
  <pre><code>  @WebServlet("/pdfGenServlet")
   public class pdfGenServlet extends HttpServlet {
  private static final long serialVersionUID = 1L;
  
  /**
   * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        try {
              // Get the text that will be added to the PDF
              request.setCharacterEncoding("UTF-8");
  
              String title = request.getParameter("title");
              String description = request.getParameter("description");
              String notes_content = request.getParameter("content");
              Date date = new Date();
          } catch(exception e)
          {e.printStackTrace();}
        }
  </code></pre>