How to upload and save file in java servlet without using apache?
<pre><code>out.println("&lt;tr&gt;&lt;td&gt;&lt;FORM ENCTYPE='multipart/form-data'"+
                          "method='POST' action='ProcessUpload' &gt;&lt;/td&gt;"+
                          "&lt;td&gt;&lt;INPUT TYPE='file' NAME='mptest'&gt;&lt;/td&gt;"+
                          "&lt;td&gt;&lt;INPUT TYPE='submit' VALUE='upload'&gt;&lt;/td&gt;"+
                          "&lt;/FORM&gt;&lt;/tr&gt;");
</code></pre>

<p>This codes can help me upload file but the problem is after I click upload, I cant save the uploaded file in particular directory.Anyone can give some suggestion?</p>
