struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravi_eze <>
Subject S2 NESTED iterators & FLAT HashMaps:
Date Mon, 18 Feb 2008 16:21:03 GMT


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();

(1) has the mapping btw tree names and the fruits it bears (as a set of
(2) has the mapping btw fruit name and the possible colours it can come out
(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/>

this is giving only the fruits names but not the colours... 

pl: help.

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message