Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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: 35762
412
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
 
It means our mission is in jeapordy! Quick, read this tiny ad!
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!