In essence here is(are) my issue(s):
In my .jsp file:
1)I set my two base Integer variables (lawful =0, good =0)
2) I have a submission form with 4 columns of checkboxes. We'll call them checkbox a, checkbox b, checkbox c & checkbox d.
The values of each check are as follows:
a = (lawful +1, good+1)
b = (lawful -1, good+1)
c = (lawful +1, good-1)
d = (lawful -1, good-1)
3) I need for calculating purposes, the ability to return the sum of any combination of 5 checkboxes inside the columns.
4) Based on THAT value, I then return a string.
I have the end logic (#4) completed but am lost as to approaching the calculating of each checkbox.
[Sum of checkboxes][https://i.stack.imgur.com/pKbv3.png
Aucun commentaire:
Enregistrer un commentaire