• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Data format problem

 
Troy Wang
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check ou tthis thread, it provides possible solutions.
http://www.javaranch.com/ubb/Forum7/HTML/002937.html
Bosun
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic