RE: Iterate through a Map, OGNL Question about accessing a map with dynamic value [0]

2008-10-09 Thread Brad A Cupit
From: Torsten Krah [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2008 9:15 AM > Your example does work fine, but its not my usecase, isn't it? Oops, sorry about that. My mistake. I'm assuming the list is a List> and the map is Map, List> if so, try this: <%-- begin setup, for example o

Re: Iterate through a Map, OGNL Question about accessing a map with dynamic value [0]

2008-10-09 Thread Torsten Krah
Am Donnerstag, 9. Oktober 2008 16:04:27 schrieben Sie: > >     >         >         >     > But here you iterate through a map (order does not matter) and take the "key", which is the list, and iterate through that. I need to iterate through a list, where the actual value "[0]" or #myList

RE: Iterate through a Map, OGNL Question about accessing a map with dynamic value [0]

2008-10-09 Thread Brad A Cupit
From: Torsten Krah [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2008 8:27 AM > > > > The below code should work in any JSP that has the Struts 2 tag library imported. It iterates over a Map whose keys are of type List. This code was inspired by [1] <%--

Iterate through a Map, OGNL Question about accessing a map with dynamic value [0]

2008-10-09 Thread Torsten Krah
Hi. I am iterating over a list like this: which works. Additionally i've got a Map where the key is the List and the value is another list. This does not work. How can i tell the lookup expression, that it should use the value from the current outer iterator as the key to loo