Daniel Łaś wrote: > Hi >I want to use <html:checkbox> inside <logic:iterate> to mark some records and perform group delete of selected records. Is there any standard way to do this with Struts? <html:checkbox indexed="true"/> doesn't seem to bee helpfull wth this task. Please point me to some tutorial if available. > > Regards
Hi daniel, you can do this using <html:multibox> for instance: <logic:iterate name="collection" id="elementI"> <html:multibox property="recordsToRemove"> <bean:write name="elementI" property="name" /> </html:multibox> <bean:write name="elementI" property="name" /> </logic:iterate> On your actionform, you have a property String[] recordsToRemove that will contain all selected elementI's names.. (Note that the multibox does not remember any not selected elements and can only remember strings) Goodluck! Koen --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]