Storing values in a HashMap inside a JSP
843838Aug 2 2006 — edited Aug 2 2006Hello,
I am new to JSP and know a little bit about JSTL, sorry about this dumb question. I just can't figure out how to do this the right way.
I'm trying to store the value of a JSTL variable into the HashMap like this:
<%
HashMap someMap = new HashMap();
someMap.put("<x:out select="$transformed/Products/Product[1]/@l_id" />","some value");
%>
when I try to output the value of the HashMap key, i get the literal value <x:out select="$transformed/Products/Product[1]/@l_id" /> , instead of the evaluated value.
How can I store the output of a JSTL EL into the HashMap key ?