I too have similar problem .If we have getting null beans  some times (
business logic) in collection  is there any tag to come out of <logic
iterate>. I am getting  Error 500--Internal Server Error at that tag.

here my code snippet
--------------------



 </tr>
     <logic:iterate   id="row"  name="floorList"  scope="request">
     <bean:define id=floor
type="com.erac.fleetsystems.carsales.csrweb.domainObjects.RFloorPlanTypeL">

  <tr>
  <td>
       <logic:notEmpty  name="floor" property="description" \>
       <bean:write name="row" property="description"  />

  </td>
 </tr>
      </logic:iterate>

thanks  in advance

-----Original Message-----
From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 1:20 PM
To: [EMAIL PROTECTED]
Subject: RE: Itrator tag returns java.util.Hashtable$Entry, how to get
value out of it.


Manish,

        <logic:iterate id="myid" name="bean" property="prop"
type="java.util.Map.Entry">

        should work. I then use myid.getValue() in a scriptlet... but you
might be
able to use bean operations on it...

--min

> -----Original Message-----
> From: Manish Pandya [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 2:20 PM
> To: [EMAIL PROTECTED]
> Subject: Itrator tag returns java.util.Hashtable$Entry, how to get value
> out of it.
>
>
> Hello All,
>
> I am iterating a java.util.Hashtable using the struts iterator tag.
>
> the id="myelement" generates a bean myelement of type:
> java.util.Hashtable$Entry.
>
> As this class has private constructors, there is no way for me to cast it
> form
> Object to java.util.Hashtable$Entry. so I can't access value
> sitting in it.
>
> any one has an answer for this?
>
> Thanks,
>
> - Manish
>

Reply via email to