aspose file tools
The moose likes JSP and the fly likes How to pass data from selected rows using checkboxes from JSP to the server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "How to pass data from selected rows using checkboxes from JSP to the server" Watch "How to pass data from selected rows using checkboxes from JSP to the server" New topic
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
    
  66

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
 
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: How to pass data from selected rows using checkboxes from JSP to the server
 
Similar Threads
Horizontal scrollbar problem
Coloring Table Rows
Extracting a parameter from c:out value
Verticle Space between the table rows
Redirecting a page