jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Panzhin <whereab...@mail333.com>
Subject core:set - to java.util.Map????
Date Sun, 30 Jan 2005 01:29:53 GMT
Have a problem. Correct me if I'm wrong.

According to JSTL docs c:set should be able to set properties not only 
to beans but to Maps too.

Sample JSP code:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
java.util.HashMap map = new java.util.HashMap();
request.setAttribute("map", map);
<c:set target="map" property="id" value=${something}/>

- This code throws exception " &lt;set&gt; invalid property "id" ".
Is this behavour correct?

To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org

View raw message