• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get value from enctype

 
Sophia Choi
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSP, there have servername and path in the form.
The form contains enctype="multipart/form-data" and posts to a servlet.
The problem is I can't use getParameter or session.getAttribute to retrieve
value.
So, how can I do?
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65118
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getParameter only works with forms posted with the default enctype (URL encoded). When you post a multipart form you either need to parse the request data yourself, or use some 3rd party software to do it. I know this has been discussed many tmes here and in the JSP forum. A little searching may find what you are looking for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic