struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: S2 NESTED iterators & FLAT HashMaps:
Date Mon, 18 Feb 2008 16:29:39 GMT
--- ravi_eze <ravichandrac@ivycomptech.com> wrote:
> 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();

That's only three.

> 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/>

"coStatus" is your inner iterator's status var; I'm not sure why you're using
it in the "BR" <s:text.../> tag?

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message