tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <d...@solaraccess.com>
Subject Re: JSTL and HashMap: How does it work?
Date Thu, 10 Oct 2002 13:03:21 GMT
Kris Schneider wrote:

>Nope, you can do it. From the spec:
>
><%-- “productDir” is a Map object containing the description of
>      products, “preferences” is a Map object containing the
>      preferences of a user --%>
>product:
><c:out value=”${productDir[product.custId]}”/>
>shipping preference:
><c:out value=’${user.preferences[“shipping”]}’/>
>  
>
Hey, isn't that what I said?!

Pbbth on all of ya'!!!

 > > If I try
 > > chart = <c:out value="${stock.charts["1M"]}"/>
>  >
>  > I get
>  >
>  > javax.servlet.ServletException:
>  > /jsp/financialdata/show.jsp(33,40) Attribute
>  > 1M has no value

'Cuz once the second double-quote is hit it thinks 1M is an attrib, not 
part of the value attribute's value.

I knew something! I knew something! ;)

(Gotta take 'em when I can... *sigh*)

Dave



--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message