struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravichandra C" <ravichand...@ivycomptech.com>
Subject RE: S2 NESTED iterators & FLAT HashMaps:
Date Mon, 18 Feb 2008 16:33:20 GMT
FE and BR are the static text beside which the result would be
displayed. I was using them to recognize the two results differently...
did I answer ur question? 

-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Monday, February 18, 2008 10:00 PM
To: Struts Users Mailing List
Subject: Re: S2 NESTED iterators & FLAT HashMaps:

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

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


Mime
View raw message