> -----Original Message----- > From: Sudip Shrestha [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 14, 2004 10:16 AM > To: Struts Users Mailing List > Subject: submitting multiple option items to struts action > > > -I have an <html:select> element which has several option items. > -This is kind of unusual situation where I have to select multiple > option items instead of only one and submit that array of option items > to the struts action. > -The select element contains a lot of option items so using check > boxes and multiboxes for this purpose does not seem like a good idea. > -Is there any other way to do this?
Yes... <html:select will do it. You have to set multiple to true, and use an array or Collection. <html:select property="selectedItemList" multiple="true"> <html:optionBLAH blah/> </html:select> http://struts.apache.org/userGuide/struts-html.html#select > > -- > Thanx, > Sudip > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]