title: How can i send image with text in servlet?
body: <p>Hi need some help in servlet.</p>
  
  <p>I want to get the image and text from jsp page in servlet, But i am not get the text value.</p>
  
  <p>This is my code Sample.</p>
  
  <p>In JSP</p>
  
  <pre><code>&lt;form method="post" action="FileUploadServlet" enctype="multipart/form-data" &gt;
          &lt;input type="text" name="name"&gt;
          Select file to upload: &lt;input type="file" name="image"&gt;
           &lt;br/&gt;&lt;br/&gt; 
          &lt;input type="submit" value="Upload"   /&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>In Servlet</p>
  
  <pre><code>protected void doPost(HttpServletRequest request, HttpServletResponse response)
          throws ServletException, IOException {
  
  
       String name =  request.getParameter("name");
       System.out.println("Received From jsp:"+name);
  
      if(name!=null)
      {       
              ..................
  
              ..................
       }
  </code></pre>
  
  <p>Here i am getting only null value, but i am sending normally without multipart i got the value, whatever sent by the jsp page.</p>
  
  <p>How can i send image with text value in servlet , This is possible.</p>
  
  <p>Please Help Me. Thanks in Advance.</p>