| Author |
How to pass data from selected rows using checkboxes from JSP to the server
|
Claudio Alvitez Becerra
Greenhorn
Joined: Dec 23, 2010
Posts: 2
|
|
Hi, I'd like to know if there's any way to send data to the server for the selected rows using the checkboxes I've put on those rows? I mean , how can I send only the data of those selected rows to the server? see the image
Here's the html code I use:
I really hope you can give some guidance on this.
Thanks in beforehand.
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26218
|
|
Claudio,
Welcome to CodeRanch!
When you say values, you mean the value in the mileage field, right? I recommend using JavaScript to copy the values into a hidden field based on which checkboxes are selected. Alternatively to blank out the non-selected ones.
Something else to think about - how do you want to identify which rows the mileages submitted go with? Order? Key? Something else?
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
Claudio Alvitez Becerra
Greenhorn
Joined: Dec 23, 2010
Posts: 2
|
|
Jeanne Boyarsky wrote:
When you say values, you mean the value in the mileage field, right? I recommend using JavaScript to copy the values into a hidden field based on which checkboxes are selected. Alternatively to blank out the non-selected ones.
Could you give an example or a page where I can find one??
Jeanne Boyarsky wrote:
Something else to think about - how do you want to identify which rows the mileages submitted go with? Order? Key? Something else?
Order , I think
|
 |
 |
|
|
subject: How to pass data from selected rows using checkboxes from JSP to the server
|
|
|