I have a bean efine that contains an arraylist. Each object in arraylist contains an accountId, which is displayed and exemptStatus, which represents the check in the checkbox. Could someone show me how I can get the check to show-up in the checkbox using multibox and an arraylist?
While you can use an Arraylist to create the checkboxes using <html:multibox>, it's important that the "property" you specify be a String array. In your example, selectedBtns must be a String array.
For what you want to do, I'd suggest using <html:checkbox> instead of <html:multibox>. Use an indexed property to identify the checkbox.
This link tells you how to use indexed properties. Note that while using indexed properties, you must either put the ActionForm in session scope, or use a Lazy Initialization technique with the ActionForm bean. [ May 30, 2006: Message edited by: Merrill Higginson ]