This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Editable Table Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Editable Table" Watch "Editable Table" New topic
Author

Editable Table

Daniel Conner
Ranch Hand

Joined: Jan 25, 2007
Posts: 47
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

Joined: Jan 10, 2002
Posts: 56191
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Editable Table
 
Similar Threads
Help ... help...JTable poblem.
Editable JList?
Editable Table
Add an editable row to an non editable JTable
edit a cell of a table