File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes how to get value from enctype Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "how to get value from enctype" Watch "how to get value from enctype" New topic
Author

how to get value from enctype

Sophia Choi
Ranch Hand

Joined: Mar 22, 2002
Posts: 106
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

Joined: Jan 10, 2002
Posts: 56202
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how to get value from enctype
 
Similar Threads
please help me
Request input stream
why can't use request.getParameter when jsp form's enctype is "multipart/form-data"
File Upload
Error While Uploading