Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Storing values in a HashMap inside a JSP

843838Aug 2 2006 — edited Aug 2 2006
Hello,

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 ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 30 2006
Added on Aug 2 2006
2 comments
406 views