2011/9/12 <[email protected]>:
>> What exactly version on Tomcat 7.0.x? There is a new one every month.
>
> .get(..) works on 7.0.5 but not on 7.0.8
>
There was a lot of important fixes since 7.0.8.
In 7.0.21 it works:
[[[
<%@page import="java.util.*" %>
<% Map states = new HashMap();
states.put(1, "foo");
pageContext.setAttribute("states", states);
pageContext.setAttribute("state", 1);
%>
The value: ${states.get(state)}
]]]
results in
[[[
The value: foo
]]]
You should have tested 7.0.21 by yourself.
Best regards,
Konstantin Kolinko
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]