Any html:multibox samples out there?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Markus_Neifer
Posted On:   Thursday, February 7, 2002 03:31 AM

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


Retrieving the values out of my form bean works well using a getter method which returns an array of String. However, having a setter method which takes an array (Collection) doesn't work.


Thanks in advance.


Markus

Re: Any html:multibox samples out there?

Posted By:   Ted_Husted  
Posted On:   Tuesday, February 12, 2002 05:07 PM

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:












HTH -Ted

About | Sitemap | Contact