Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Iterate Hashmap of object
Joined: Dec 13, 2005
Dec 29, 2005 01:05:00
I am getting the problem to iterate the hashmap of objects.Follwing code works good for a vector but has some problem for
. I know this is becuase hashmap key,value pair. Can any one correct it.
resent name="AddTemplateForm" property="hmitemProperties">
<bean:size id="size"name="AddTemplateForm" property="hmitemProperties"/>
<b>Total No. of Template - <%=size%></b>
<logic-l:greaterThan name="size" value="0">
<logic-l:iterate id="itempro" name="AddTemplateForm" property="hmitemProperties">
<bean:write name="itempro" property="propertyName"/>
Joined: Feb 15, 2005
Dec 29, 2005 10:43:00
If the information you want is in the key part of the hashmap, change the bean:write property to propertyName.key. If it is the value part of the hashmap that you want, use propertyName.value.
I agree. Here's the link:
subject: Iterate Hashmap of object
how to apply continue statement in struts logic:iterate tag
How to nest tags?
problem with html:radio
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015