aspose file tools*
The moose likes Servlets and the fly likes Data format problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Data format problem" Watch "Data format problem" New topic
Author

Data format problem

Troy Wang
Greenhorn

Joined: Jan 31, 2001
Posts: 6
Hi,
I am trying to upload a file using servlet. If the servlet is only used for uploading a file, no problem. But if I put some textfields in the form and tried to retrive these data by (req.getParameter("xx"), then I got everything null in the corresponding fields. I guess it is because of the attribute: enctype="multipart/form-data" . Can anyone help me out? I don't want to use seperate forms. Many thanks.
Troy
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Check ou tthis thread, it provides possible solutions.
http://www.javaranch.com/ubb/Forum7/HTML/002937.html
Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Data format problem