Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Editable Table

 
Daniel Conner
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to make a jsp page with an editable table. I already have layed it out... It is populated from a database. It uses checkboxes for row selection. My question is how do I get the selected values back to the controller when the form is submitted? Let me elaborate... I have no problem getting one row back.. but I don't know how to get more than one row back. Any suggestions would be great. Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64629
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If each row has a checkbox with the same name, and each checkbox has a unique value, what's the issue?

Just get the parameter values for the checkbox and you'll know which rows have been checked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic