getparameter

Servlet get parameter from multipart form in tomcat 7 [duplicate]

两盒软妹~` 提交于 2019-11-26 17:43:15
问题 This question already has answers here : How to upload files to server using JSP/Servlet? (12 answers) Closed 4 years ago . Making a project and need file upload. So, i am using enctype="multipart/form-data" inform. But i unable to parse parameters from request. I also tried getPart but it returning blank string. Servlet code --> import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http