Forums Register Login

Multi row , multi column checkbox form processing in JSP

+Pie Number of slices to send: Send
Hi,

I have to write part of a code that deals with displaying data from a database to the user. After the user selects one or more of the rows (using checkbox here). i need to catch the values. Here is what i wrote for the form.




I have two doubts here

1) I know I can use to get a list of all the checkboxes that have been marked. But, if i do checked[i].value , I need to to get the values for a, b and c. How do I do that. I may have to concatenate a,b and c and put it in the value parameter of the checkbox. But, then processing it later becomes messy. So is there any other way around this problem.

2) In the value paramater of the checkbox , how exactly do I use the a,b,c variables because i have not used jstl before and i am new to javascript too. can i simply do value="${var.a}+${var.b}+${var.c}" or is that wrong.
+Pie Number of slices to send: Send
You have to provide unique values to the check boxes in order to differentiate them. This is the only way i guess.
+Pie Number of slices to send: Send
Do you really need to get the values at your jsp? Why are you doing this at your jsp?
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2831 times.
Similar Threads
Read table values in Action
Display data from database to jsp page.
Passing check box value to servlet.
Please help with checkbox value using ajax
check boxes retrieving problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:12:50.