I have this currently :
String recipients [] ;
public String [] getRecipients() {
return this.recipients ;
}
I am using the <html:select>, which tells me the corresponding property has to be a array of any supported data type, then if you use the <html:optionsCollections>to render the options one has to use a collection of beans ? Am I on the right track ?
Nicolas De Loof wrote:
Having your formBean prepopulated in some scope (by a previous action), let's say you use "foo" property whith "multiple" getters :pulic String[] getFoo() pulic String getFoo(int index) You just need a <html:select> with <html:option> (or <html:options>) in your JSP - NOT <select> or <option> that are HTML and struts will not use for pre-selecting value. <html:form ...> <html:select multiple="true" property="foo"> <html:option value="1">Value1</html:option> <html:option value="2">Value2</html:option> <html:option value="3">Value3</html:option> <html:select> </html:form> Nico.How does one pre-populate a form field in struts which uses the multiple select ? I've tried it but I don't see anything being filled out in the select box, I've also created the necessary form beans for it to work. Help with this would be nice, thanks. --------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

