Indirection in getting attribute

I need to retrieve attribute, which name I know, but cannot set directly. I only can go to another attribute and found it out there.

Example:

<c:forEach var="Row" items="${collection}" >

<c:out value="Row.${attribute}"/>

- this gives me string 'Row.xxx', ('xxx' is attribute's value), but I needRow.getXxx();

I would write something like ${Row.${attribute}} , but it's not possible this way. Can this be done otherwise? Thanks.

[490 byte] By [jirineja] at [2007-11-26 23:44:02]
# 1
try ${Row.xxx}
tolmanka at 2007-7-11 15:15:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
You need to use the square brackets notation.The expression you are after is${Row[attribute]}
evnafetsa at 2007-7-11 15:15:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
It works! Many thanks!
jirineja at 2007-7-11 15:15:01 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...