I have the trouble that JSP cannot recognize the "multipart/form-data" then I cannot upload the file on server, here is my code, could you please see for me
The action in the form here is empty and the the submission of this form will be manage by
with the value = "finish" then servlet will navigate to another page (this code I put in doPost method, I often do like this and everything is ok, so I think it's not the problem from the empty action in form). But when I navigate to a page which has a piece of code:
and the result was that it is not a "multipart/form-data". I really frustrate with this problem since I cannot do any thing with my project, I have to upload the file on server, but it cannot recognize the form as a multipart/form-data and I get stuck at this step, could you please help me? I greatly appreciate your help! Thanks a lot
Actually I don't use getParameter() method, I am new to JSP and I found some code example for upload file, it works fine, but when I integrate to my part, it didn't recognize the "multipart/form-data". The attached files are the code that I got with a simple text input, 2 controls of file input and it can upload, I didn't change any thing except that put more controls (aligned in a table that devided into 2 parts) and use the empty action form. Finally, I don't understand what the problem from?
This is the upload html
This is the upload jsp
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads: