Thanks Min,

I figured some direct approach.

<logic:iterate id="client" name="clientdatabase">
        <logic:present name="client">
                <li>
                <bean:define id="temp" name="client" property="value"
type="com.mycompany.mytool.Client"/>
                <bean:write name="temp" property="clientName" filter="true"/>
                </li>
        </logic:present>
</logic:iterate>

Thanks anyway for your help.

- Manish
-----Original Message-----
From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 2: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