struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Avdic">
Subject JSTL Map Accessors
Date Tue, 06 Jul 2004 18:55:50 GMT

I have a problem that I can't seem to get around.

I have a number of maps in my request, all keyed by same sequence of String
keys that are contained within an ArrayList in that same request.
My question is how do I get to the values in those maps?

I've tried variations on:

<c:forEach items = "${masterList}" var="masterKey">
<c:out value="${firstMap[masterKey]}" />
but that obviously looks for entries keyed to "masterKey" and not the value
contained in the masterKey variable.

How would I evaluate masterKey before firstMap[] is evaluated?  Is that even
possible?  What are my alternatives?

Thanks a lot,


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

View raw message