I\'m trying to show a session attribute \"userSession\" in a jsp page using JSP EL, but it returns null (case 1). Request attributes are shown properly in EL expressions tho
What does:
<c:out value="${sessionScope.userSession}"/>
or
<c:out value="${sessionScope['userSession']}"/>
give?
Fixed. Problem was with a <%@ page session="false" %>
directive found in an include.jsp used by my page, which I removed from that global place.
It prevents a jsp page from access to session scope variables. So only <%=request.getSession().getAttribute("foo")%>
works in that case...
<c:out value="${sessionScope}"/>
or just ${sessionScope}
list all the attributes in portlet application scope.
so, You can try to get your attribut with this expression !