javax.servlet.ServletException: Cannot find bean EMTTaskDetail in scope null

This doesn't mean your scope is not valid but that there is no bean in the
scope you specified. So if you specified no scope, this mean there is no
bean in 'memory'.
Verify the tag <logic:iterator> (logic taglib definition).

On another side, if you iterate through an array of specified Objects, you
must provide a type in the iterate tag.

-----Message d'origine-----
De : Anoop [mailto:[EMAIL PROTECTED]]
Envoy� : lundi 7 octobre 2002 09:00
� : [EMAIL PROTECTED]
Objet : 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