Multiple selects return an array of strings so your form bean should have a String[] multiSelect member with accessors:
String[] getMultiSelect()
void setMultiSelect(String[])


David



From: Dan Allen <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: multiple select handling in Action
Date: Sat, 8 Mar 2003 19:06:57 -0600

Okay, I realize that this list is flooded with questions about
multiple selects, but they are just dang confusing as all hell.

If I have a DynaForm and I want to have a multiple-select, what do I
put as the type attribute in the form-bean definition and when I use
the get() method, what does it return?

<form-bean>
  <form-property name="selectElement" type="???"/>
</form-bean>

??? = form.get("selectElement")

Dan

--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"I am the GOD.....the GOD...of house!"
 -- Leeloo
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to