iam having problem in struts2..
iam passing a list to iterator.
in iterator iam taking checkbox and a select list.
when iam selecting checkboxes am getting selected checkbox values in my action class. And in select tag iam getting all the values irrespective of checkbox selection.
for example if i check 3 checkboxes then
am getting user.length=3
so by this data mismatching
so please give me solution for this....
i think if i get total checked and unchecked values with true and false then my solution may be solved i think
Thanks alll in advance......
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
You are always overwriting the name with the last one. So to be honest I still dont know what your actual goal is ... but whatever it is I'm sure its not right because you are in an iterator and you keep using same names for both fields. So no matter what you do you'll always have the same values for all checkboxes and all select items .. and if I'm not mistaken it will always take the value of the last one maybe?
Anyway ... if you want more help you probably need to let us know what you are actually trying to accomplish ...