I created a javabean that takes the input from a checkbox for 6 different cabs, Cab 1, Cab2, Cab3 etc. I have private variables cab1Counter++ etc., in my bean with associated get and set methods for each cabCounter. I created the below
JSP to give me a summary of my inputs.
MY PROBLEM: If I select an item it gets incremented, but on a second pass if the item is not selected it's counter goes back to 0. I cannot come up with a good way to iterate over my
string of cab's entered. Anyone have any ideas?