struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SATISH.T" <satish.ter...@wipro.com>
Subject RE: [ServletException in:/createReport/getGroupId.jsp] Cannot fin d bean under name groupQuery'
Date Thu, 06 Jun 2002 10:10:03 GMT
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:angela.k.day@sun.com] 
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:angela.k.day@sun.com]
>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:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:struts-user-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>
>



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message