struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manish Pandya" <man...@cobite.com>
Subject RE: Itrator tag returns java.util.Hashtable$Entry, how to get value out of it.
Date Fri, 31 Aug 2001 18:39:58 GMT
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:mai3116@ritvax.isc.rit.edu]
Sent: Friday, August 31, 2001 2:20 PM
To: struts-user@jakarta.apache.org
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:manish@cobite.com]
> Sent: Friday, August 31, 2001 2:20 PM
> To: struts-user@jakarta.apache.org
> 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
>


Mime
View raw message