On Mon, 4 Jun 2001, Dante le Poole wrote:

> Hi all,
> 
> Can Struts deal with selectlists which allow multiple selections?

Sure.  There is an example of this on the "html-select.jsp" page in the
exercise example application.  Basically, you say something like:

  <html:select property="propname" multiple="true">
    ...
  </html:select>

> If so, how should I create the accessors methods for the formbean, i.e.
> how does Struts get/set the multiple selections from the formbean?
> 

Use a String array for your property.  All of the selected values will be
returned.

> Thanx!
> 
> Dante
> 
> 

Craig


Reply via email to