Problem is that
+ is used for addition so "a"+"somethingelse" else gives plenty nice errors of type:
javax.servlet.ServletException: An exception occured trying to convert String "a1" to type "java.lang.Long" / or "java.lang.Double"
Following code is solution, but i rather wanted the concatenation inside the
[ ] brackets
<jsp:useBean id="map" class="java.util.HashMap"/>
<%
map.put( "a123", "object");
final String s = "a" + "123";
pageContext.setAttribute( "id", s );
%>
${map[ id ]}
[ July 07, 2004: Message edited by: Dimiter Stoinov ]