tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Affan Qureshi" <>
Subject Getting values from a Map in JSTL-EL
Date Sat, 23 Nov 2002 05:34:21 GMT
I have two questions. How to get values if my bean has a method that returns
a Map? I have a bean with getValues() method that returns a Map.
I have tried
<c:out value="${specs.values.paramId}" />

<c:out value="${specs.values[paramId]}" />

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

But I get the following error:
Unable to find a value for "map" in object of class
"java.util.HashMap$Values" using operator "."'  (correspondingly)

Also my bean also has a method that takes a String and returns the value
Object from the map. Its signature is:
public Object getValue(String key)

How do I use this method using EL?

Thanks a lot.

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

View raw message