Any html:multibox samples out there? Hi, can anybody please point me to a working sample using html:multibox?

Ted Husted

ActionForm:


private String[] selectedItems = {};
private String[] items = {"UPS","FedEx","Airborne"};
public String[] getSelectedItems() {
    return this.selectedItems;
}
public void setSelectedItems(String[] selectedItems) {
    this.selectedItems = selectedItems;
}

JSP:


<logic:iterate id="item" property="items">
    <html:multibox property="selectedItems">
        <bean:write name="item"/>
    </html:multibox>
        <bean:write name="item"/>
</logic:iterate>

HTH -Ted

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact