Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

problem in accessing multiple select option value  RSS feed

Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every body

i have a code in which in one select block i have set of options to choose from. and i can go for multiple selection.

and after selections are made and i click ADD it sends these selection to other box.

now since it is a multiple selection ,i am facing problem in accessing the selected (or moved) box through it's name in servlet.

When i am trying to access theese selected option in my jsp ,it displays null.

i just got this code from net and copied it. but it's not working .

can any one help me can we access the selected box.

or is there any other good idea.

here is my code

also in my jsp page i am retreaving the value with this code.

can any one please help me.

Thanks and regards.
Author and ninkuma
Posts: 66804
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please use real words when posting to the forums. Abbreviations such as "prob" in place of "problem" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

JavaRanch sheriff

Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Use getParameterValues(String s) to get the list of values from request parameter.

Its returning nothing since none is selected. So select it using javascript before submitting the form.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!