Hi all,
I have a model, that exists out of 12 fields (questions):
now in the controller I need to check for every field if its value is true, but I cannot use a loop (as far as I know), so I'm just using 12 if statements.
Sure there must be a much cleaner solution to this problem?
I thought of introspection, but that just slows everything down and it's even less readable for some simple like this imho.
I would like to know what a nice and simple solution could be to this problem, apart from introspection
Please note that every field (question) is mapped to a group of radiobuttons through Spring binding
grtz
[ November 20, 2007: Message edited by: kristof vanhaeren ]