struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hartrich, James CTR USTRANSCOM J6" <James.Hartrich....@ustranscom.mil>
Subject RE: nested s:iterator
Date Wed, 20 Jun 2007 14:30:28 GMT
Quick follow up to correct myself. This works:
<s:property value="#row[(#columnName)]"/>
I referenced the following documentation
http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/expressionEva
luation.html
James


-----Original Message-----
From: Hartrich, James CTR USTRANSCOM J6
[mailto:James.Hartrich.ctr@ustranscom.mil] 
Sent: Wednesday, June 20, 2007 9:17 AM
To: Struts Users Mailing List
Subject: nested s:iterator

How would one iterate a bean's collection<hashmap> "row" values by key
of bean's collection<string> "columnName"? Here's what I have on the
jsp:

<s:iterator id="row" value="bean.tableColumnData" status="rowStatus">
	<s:iterator id="columnName" value="bean.tableColumns"
status="status">
		<s:property value="row.columnName"/>
		<s:property value="#row.columnName"/>
	</s:iterator>
</s:iterator>

Neither s:property shows any values. Can anyone throw me a bone here?
James

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