• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to pass data from selected rows using checkboxes from JSP to the server  RSS feed

 
Claudio Alvitez Becerra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author & internet detective
Sheriff
Posts: 36453
456
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Claudio Alvitez Becerra
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!