• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing an array

 
Daniel Layher
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know this sounds super easy but i can't figure it out. I have a select box that is populated on the fly through a database. The select box is also has multiple set to true so you can choose more than one option. However, every time i try to pass it to the servlet it, only the first selection is passed. I'm pretty sure that it is set up as an array, but I'm not sure how to pass the array, which doesn't have a set size, to the servlet. Any suggestions??? Thanks ahead of time.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which method did you call in your servlet ? Did you try getParameterValues ?
 
Daniel Layher
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Worked like a charm. Thank you. I was just using .getParameter(). that made all the difference. Thanks again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic