Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

display in Jsp  RSS feed

 
Sujittt Tripathyrr
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a doubt . I had a list box which you selected mutiple values and i have another 3 to 4 check boxes . I am using struts Framework so in action form i used the checkbox group name and list box name as variables.

but when in Action i retrieve the values from the action form i am able to display only one value. How i will be able to display all the values selected in the check box or list.

Thanks in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Checkboxes and select lists work differently.
To receive all the selected values from a multi select list, use request.getParameterValues.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!