Pen:

    I guess you havnt defined the type for the collecting object properly as
per the bean object in collection.

try using, LabelValueBean to setup ur collection.
the bean is the value what option will put in selection property.
u need to have same type for bean and the collecting property.


----- Original Message -----
From: "Hirschmann, Bernhard" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 4:03 PM
Subject: AW: Question about <html:select> (again)


>
> 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 [mailto:[EMAIL PROTECTED]
> 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