Hi,
 I am not sure about this, but i have had this problem. Make sure your bean
follows the specifications of a Bean.
All properties have getter/setter methods. Sometimes Struts(or reflection i
should say)  will not recognize your class as bean because if this.
Also double check if your storing it in some scope in your Action class.

Deepank


----- Original Message -----
From: "Anoop" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 07, 2002 12:30 PM
Subject: Cannot find bean error


> Hi,
>
> I am trying to loop through an ArrayList returnd by a bean inside
> <logic:iterator>
>
> Name in the Iterator tag specifies a bean set in request scope in my
> ActionBean, getter on which will return an ArrayList. I am trying to read
> the bean returned by the ArrayList inside the Iterator tag. There is an
> exception thrown:
>
> javax.servlet.ServletException: Cannot find bean EMTTaskDetail in scope
> null
>
> I tried specifying all the possible scopes, session and request but it
still
> throw this exception
>
> The scriptlet looks something like this:
>
> <logic:iterate id="EMTTaskDetail" name="timesheetDetails"
> property="taskDetails">
>
>   <tr class="welcometxt">
>
>     <td bgcolor="#f0f0f0"><p><bean:write name="EMTTaskDetail"
> property="taskName"/></p></td> ...........
>
> getTaskDetails() on the bean set in the request scope with key
> "timesheetDetails" returns an ArrayList of EMTTaskDetail objects.
>
> Thanks for your help.
>
> Thanks & Regards,
> Anoop.
>
>
> --
> 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]>

Reply via email to