i have this code but i have an error "Cannot find bean referralsinfo in any
scope"

my referralsinfo is in my request session and i know its working cause i can
use it in
my logic:iterate tag. what seems to be the problem? Here's some of my jsp
code
.....
<logic:iterate id="referralsInfo" name="referralsinfos">
    ......
</logic:iterate>
   <bean:size id="size" name="referralsinfo"/>
   <logic:equal name="size" value="0">
    <tr>
     <td colspan="7" class="tablecontentdata"> No record(s) found! </td>
    </tr>
   </logic:equal>
....

Am i doing things right?

Thanks


-Richard

----- Original Message -----
From: "Todd Pierce" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, February 21, 2003 11:07 AM
Subject: RE: Help in Logic Tag


> With Struts tags:
>
> <bean:size name="list" id="collectionSize" />
>
> <logic:greaterThan name="collectionSize" value="0">
> <logic:iterate ...>
> ...
> </logic:iterate>
>
> </logic:greaterThan>
>
> <logic:equal name="collectionSize" value="0">
> ...
> </logic:equal>
>
> -----Original Message-----
> From: Richard Raquepo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 21 February 2003 2:05 PM
> To: Struts Users Mailing List
> Subject: Help in Logic Tag
>
>
> i want to be able to show a message like
> "No records found" is there was no records found or logic/iterate did not
do
> any iteration.
>
> Can anybody provide us a solution to this kind of problem?
>
> thanks a lot!.
>
> i have this in my JSP:
>
>  <logic:iterate id="referralsInfo" name="referralsinfos">
>     <tr>
>       <td width="0%">&nbsp;</td>
>       <td width="15%" class="tablecontentdata">
>        &nbsp;<bean:write name="referralsInfo" property="lastname"/>
>       </td>
>       <td width="16%" class="tablecontentdata">
>        &nbsp;<bean:write name="referralsInfo" property="name"/>
>       </td>
>       <td width="11%" class="tablecontentdata">
>        &nbsp;<bean:write name="referralsInfo" property="mi"/>
>       </td>
>       <td width="14%" class="tablecontentdata">
>        &nbsp;<bean:write name="referralsInfo" property="phone"/>
>       </td>
>       <td width="19%" class="tablecontentdata">
>        &nbsp;<bean:write name="referralsInfo" property="mobile"/>
>       </td>
>       <td width="25%">&nbsp;</td>
>      </tr>
>  </logic:iterate>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

Reply via email to