title: How can I save the entire form from the client by a servlet?
body: <p>I create a form with some inputs and other information on a client by JSP,then i want to send the form to the server while a servlet runs on the server. My question is how to save the entire form which I post inside a html file, the html file will be created once I get the request.</p>
  
  <pre><code>&lt;form name="myform" action="servlet on server" method="post"&gt;
   &lt;input type="button" id="sth" /&gt;
   ....
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to use the File class to create the new html file, but how can I get the entire form and write it in the new file?Thanks.</p>