File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading from Map in jstl

 
Elizabath Lima
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I'm searching for a solution to get the value (which is a list) from a java.util.map with a key.
I tried this option
<c:set var ="county" value="${specs.values.parameter.stateid}"/>
where 'parameter.stateid' is my key in the map and 'specs' is my map
and iterating thru the loop using
<c:forEach items="${county}"...

I'm not getting the list from my map using
<c:set var ="county" value="${specs.values.parameter.stateid}"/>

what i can do to resolve this??
 
Paul Clapham
Sheriff
Pie
Posts: 20177
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I am not mistaken,I don't know why you have "values" in the middle of your EL expression, but if "specs" is a Map then the following two expressions are equivalent:In other words, something in your expression ("values" probably, or maybe "values.parameter.stateid"), is being treated as a literal rather than as property names.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic