This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


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
 
GeeCON Prague 2014
 
subject: Data format problem