• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot find bean in any scope Error

 
AnilPrakash Raju
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

With the following code:

<logic:iterate name="vHvnsDriverVec" id="vHvnsDriver1" scope="request">
<tr>
<td><bean:write name="vHvnsDriver1" property="driverNo"/></td>
<td><bean:write name="vHvnsDriver1" property="licenceNumber"/></td>
<td><bean:write name="vHvnsDriver1" property="licenceState"/></td>
</tr>
</logic:iterate>

In the action i can see that the vHvnsDriverVec contains several
entries.
I am also seeting it.
httpServletRequest.setAttribute("vHvnsDriverVec", vHvnsDriverVec);

In the jsp the vHvnsDriverVec is not empty( i tested this with <logic:notempty> but the values are not displayed. I also tested the vector in the jsp and it is not null.

I am getting a 'Cannot find bean vHvnsDriver1 in any scope Error


What am i doing wrong?

Thanks in advance

Anil
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try to use logic resent or logic:notPresent check attribute in request scope.
 
AnilPrakash Raju
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

Actually the Vec was not setup properly. There were some null objects in the the vector.

Thanks

Anil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic