aspose file tools*
The moose likes Servlets and the fly likes need help in enctype Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "need help in enctype" Watch "need help in enctype" New topic

need help in enctype

Thuyamani Jayakumar

Joined: Jun 24, 2001
Posts: 5
Dear all,
i just want to upload a file from a jsp page. To do so, i just made the enctype="multipart/form-data", by this the file has been uploaded successfully. but the problem i can get the other form values (i.e. from other controls like textfield, select etc., thro. request.getParameter()) it's just returning empty.
if i make the enctype as "text/html" or if i remove the enctype property i can access the form field values but the file is not uploading...
anybody knows the solution for this problem...
thks in advance.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
This issue has been discussed several times in thsi forum I just used the search facility to search for "enctype" you may want to try it. This is one of the links the search provided


So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: need help in enctype
Similar Threads
commons FileUpload.
how to upload file along with HTML form data
how to pass values from html to jsp
How to get the request parameters while the enctype is multipart/form-data
how do i get value from input type file in servlet?