I am trying to implement an upload program using servlet, so I have create a HTML form like this
<FORM ACTION="myUploadServlet" METHOD=POST ENCTYPE="multipart/form-data">
Which file to upload? <INPUT TYPE=FILE NAME=file1><INPUT TYPE=SUBMIT>
<input type="hidden" name="action" value="upload_photo">
<input type="hidden" name="success_url" value="upload_success.html">
But when the form is trying to submit, my servlet didn't get any of the parameter from the hidden field. My servlet is using,
req.getParameter("action") and req.getParameter("success_url") to get those parameter. Please help. Many Thanks !