So this is what you have:

<html:select name="test" multiple="true" property="list"  size="8">
    <html:optionsCollection property="list" label="label" value="name"/>
</html:select>


You're using the field "list" from the form bean for two purposes, which
result in a conflict. 
In the html:select, the 'property' is supposed to store the selections by
the user.
In the html:options, the 'property' keeps the content for your selection
box.
I guess you should choos a different list for the selections, made by the
user.

Regards,
Bernhard



-----Urspr�ngliche Nachricht-----
Von: Peng Tuck Kwok
Gesendet: Freitag, 28. Februar 2003 00:44
An: Hirschmann, Bernhard
Betreff: Re: AW: AW: Question about <html:select> (again)


That's funny, I did attach it. Nevermind here it is again.

Hirschmann, Bernhard wrote:
> there is not attachment in your mail...
> 
> 
> -----Urspr�ngliche Nachricht-----
> Von: Peng Tuck Kwok 
> Gesendet: Donnerstag, 27. Februar 2003 11:41
> An: Struts Users Mailing List
> Betreff: Re: AW: Question about <html:select> (again)
> 
> 
> Hey Bernhard thanks.
> 
> Here it goes.
> 
> Hirschmann, Bernhard wrote:
> 
>>Hey Pen,
>>
>>if you could post the JSP code, maybe I could give you a hint.
>>
>>Regards,
>>Bernhard
>>
>>
>>-----Urspr�ngliche Nachricht-----
>>Von: Peng Tuck Kwok 
>>Gesendet: Donnerstag, 27. Februar 2003 10:21
>>An: Struts Users Mailing List
>>Betreff: Question about <html:select> (again)
>>
>>
>>I've been able to display a collection of beans using the <html:select> 
>>tag in conjunction with with the <html:optionsCollection> tag but I am 
>>stuck with a problem. I get complains from struts that it has a type 
>>mismatch when it tries to set my attribute for the <html:select> field.
>>
>>I have public ArrayList getSelection() and public void 
>>setSelection(ArrayList input) . It seems the problem is at setSelection.
>>Does anyone know how to make this work?  I'm a little confused by this 
>>and I'm sorry if it doesn't make sense in the first read. 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]

Reply via email to