I am trying to access a session object where the key is the field "ACCOUNT_PROFILE_SESSION_ATTRIBUTE" in a Constants JAVA file called "GlobalConstants". I created a wrapper around it that extends Map (JSTLConstants) to contain all the constants so I could access it via JSTL. I am trying to do the following:
<jsp:useBean id="GlobalConstants" class="com.JSTLConstants"/> <c:set var="accountProfile" value="${GlobalConstants.ACCOUNT_PROFILE_SESSION_ATTRIBUTE}" scope="page"/> <c:out value="${sessionScope[accountProfile].accountName}"/> My question is, how can I use the GlobalConstants.ACCOUNT_PROFILE_SESSION_ATTRIBUTE value to lookup my object in the Session using JSTL? Dan