c:foreach tag is not working on a Map
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, April 16, 2008 06:13 AM

Hi!
I,ve tried to iterate over a Map, and display the key-value attributes:

"


#{columnDef.key} : #{columnDef.value}


"

I know that "columnDef" is a Map.Entry, but the web page is displaying something like this:

" #{columnDef.key}: #{columnDef.value}"

not the values expected.

Could you please help me?

Tnx.

Re: c:foreach tag is not working on a Map

Posted By:   Anonymous  
Posted On:   Thursday, April 17, 2008 02:59 AM

forEach needs a collection => items should be a collection instead of a map (like keyset or values)
retrieving the map element by using get(key) method
About | Sitemap | Contact