You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Spencer Smith <sp...@msoft.com> on 2001/03/07 20:39:22 UTC

Question/Problem using Multiple Select Options

Help!  Unable to send back muliple select options.....

// Define the Array
 protected String[] geography;

// Get the Array
 public String[] getGeography() {
   return (geography);
 }

// Set the Array
 public void setGeography(String[] geography) {
  { this.geography = geography; }
 }

**** Code In JSP Page ******
<html:select property="geography" multiple="true" size="2">
    <html:options collection="cmProviderTypes" property="value"
labelProperty="label" />
 </html:select>

This is only returning 1 value???

Has anyone done this successfully?  I would really appreciate some help.

Thanks in advance,
Spencer