Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem using oreilly package for file upload

 
Janak Kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I m using oreilly's package for file upload, I have a combo box which consits of String names with spaces like "Child Care",
when i am retrieving from JSP through servlet
i m only getting "Child" and not the rest.
I m using the MultipartRequest's getParameter method.
Pls help,
Thanx in Advance,
Janak
 
Erick Jones
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like there may be a bug in the oreilly package. One workaround would be to give the options a value. This will then be the value in the request when the form is submitted.
For example,
<SELECT NAME="category">
<OPTION SELECTED VALUE="cc">Child Care</OPTION>
</SELECT>
You will just have to change your code to check for "cc" instead of "Child Care".
Hope this helps!
Erick
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
janak
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
Thanks!
and welcome to the JavaRanch!
 
Anthony Smith
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try get ParameterValues it is a String[]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!