Re: @StrutsParameter
Lukasz Lenart <[email protected]> Thu, 9 Oct 2025 16:41:09 +0200
| Newsgroups | gmane.comp.jakarta.struts.user |
|---|---|
| Message-ID | <CAMopvkMVAzyyVD_j3zW_FFy6zAccbkUoLm9OOdsWDO4RJKQ0Zw@mail.gmail.com> |
=C5=9Br., 8 pa=C5=BA 2025 o 17:08 Prasanth <[email protected]> napi= sa=C5=82(a): > > Below is a fragment of the jsp. > > <c:forEach items=3D"${currentAccessLevels}" var=3D"access" v= arStatus=3D"loopStatus"> > <tr class=3D"${loopStatus.index % 2 =3D=3D 0? 'row1':'ro= w2' }"> > <td><s:checkbox name=3D"contacts" fieldValue=3D"%{#a= ttr.access.contactID}" value=3D"%{contacts!=3Dnull && contacts.contains(#at= tr.access.contactID)}" > submitUnchecked=3D"true"/>${access.getContactName()}</td> > </tr> > </c:forEach> This is probably due to how the CheckboxInterceptor works - it collects all the values and sets them at once, that's why the setter is used - you have one "contacts" value instead of multiple values eg. "contacts[0]=3D...,contacts[1]=3D..." Cheers =C5=81ukasz