hi,
i have 4 hashmaps as follows:
(1). HashMap<String, HashSet<String>> treesFruitsMap = new HashMap();
(2). HashMap<String, HashSet<String>> fruitsColourMap = new HashMap();
(3). HashMap<String, String> colourVitaminMap = new HashMap();
i.e.
(1) has the mapping btw tree names and the fruits it bears (as a set of
strings)
(2) has the mapping btw fruit name and the possible colours it can come out
in
(3) mapping btw fruit and the vitamins it has in it.
I need to display the output as follows:
Fruit1 - Colour1 - Vitamin1
Fruit1 - Colour1 - Vitamin2
Fruit1 - Colour2 - < corresponding vitamins >
...
any idea how to go with this? I tried as follows but its not working..
<s:iterator id="frId" status="frStat" value="frColourMap.keySet()" >
<s:iterator id="coId" status="coStatus" value="top" >
FE <s:text name="%{top}" /> <br/>
BR <s:text name="%{coStatus[top]}" /> <br/>
</s:iterator>
</s:iterator>
this is giving only the fruits names but not the colours...
pl: help.
--
View this message in context:
http://www.nabble.com/S2-NESTED-iterators---FLAT-HashMaps%3A-tp15546918p15546918.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]