Hey...dunno if it works the way u doing it or not....but u seem to be
setting a list of form beans under collection. I do it this way for a
collection object for a combo box and it works fine.
>        <html:select property="groupId" >
>            <html:options
>                        collection="groupQuery"
>                        property="groupId"
>                        labelProperty="groupId"
>            />
>        </html:select>
Action :
ArrayList list=new ArrayList();
list.add(new LabelValueBean("A","A"));
list.add(new LabelValueBean("B","B"));
list.add(new LabelValueBean("C","C"));

request.setAttribute("groupQuery", list);

check if it works for u


-----Original Message-----
From: Angela Day [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, June 06, 2002 2:40 AM
To: Struts Users Mailing List
Subject: Re: [ServletException in:/createReport/getGroupId.jsp] Cannot
fin d bean under name groupQuery'

I converted it to a collection and I still get the same error?

Please Help,
Angela

Galbreath, Mark wrote:

>Yeah, the container can't find the collection...?
>
><html:options> iterates through a collection of beans.  You are trying
to
>iterate through an array - can't be done.
>
>Mark
>
>-----Original Message-----
>From: Angela Day [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, June 05, 2002 3:20 PM
>
>I'm going crazy with this error message.  Does anyone know what the 
>problem is?
>
>[ServletException in:/createReport/getGroupId.jsp] Cannot find bean 
>under name groupQuery'
>
>JSP:
>        <html:select property="groupId" >
>            <html:options
>                        collection="groupQuery"
>                        property="groupId"
>                        labelProperty="groupId"
>            />
>        </html:select>
>
>Action:
>                MyGroupForm[] lst = (MyGroupForm[])cmd.getResults();
>                request.setAttribute("groupQuery", lst);
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to