Ok back to the action class and form beans to restructure some stuff. Wish me luck :) Nicolas and thanks.


Nicolas De Loof wrote:

Hmm...
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 ?


Right, <html:options> can be use two ways :

- with a collection attribute: the collection must contain beans that have
two properties, declared by "property" and "labelproperty" tag attribute.
This property will be used to render the HTML option value and label.

- Without collection attribute. Depending if "property" and/or
"labelproperty" are set, tag will look for collection(s) in scope or a
formBean property that will contain values (and label) for HTML option to
render

see http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#options

Nico.


---------------------------------------------------------------------
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]

Reply via email to