reset password
Author Message
Sanaz_6101
Posts: 40
Posted 00:39 Nov 21, 2009 |

Hi Dr. Sun

How can we access to specific element in the set through form binding.for example if  we have something like this :

<form:checkbox path="correctSelections[${choiceStatus.index}]"
                        value="${choiceStatus.index}"   ></form:checkbox>

but this is for list so how can we use it for set

Best Regards,

 

e.laverdi
Posts: 15
Posted 05:03 Nov 21, 2009 |

I used a set and used the same method below. Make sure ur actualling calling the correct path for binding.

<form:radiobutton path="questions[${questionsStatus.index}].choices" value="${choiceStatus.index}" /> ${choice}