kvarnerexpress 0 Report post Posted July 28, 2005 I have a JSP where data is shown by use of a for:each loop. In this loop I have a multibox tag which will display checkboxes next to each corresponding row. A user will have the ability to select all or a few or none of the checkboxes and click print. From here, the action gets called where I need to find out which rows were clicked. Right now if I click 3 checkboxes then the String[] in the form is created with array[0] = "checked", array[1] = "checked", array[2] = "checked". This does not help because I need to know which columns were not checked. How can I do this?Kvarnerexpress Share this post Link to post Share on other sites
patelg 0 Report post Posted July 29, 2005 Now, since you have for:each loop, you know for how many times the loop has run.Example: if loop runs for 10 times, you have array[0] ....to array[9]. If user checks array[2] and array[5] then you know that this two checkboxs has been checked.So you just sustract those 2 and 5 from list of 0 to 9 and what ever left is your answer.You can also give each checkbox name like checkbox0 to checkbox9. Also, if you want to pass the total value of loop in form, then print that for:each total loop value as hidden field, so later you can access it in action.Hope this will help and solve your problem.Thank You. Share this post Link to post Share on other sites