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
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.
<%@ page session="false" %>
It prevents a jsp page from access to session scope variables. So only <%=request.getSession().getAttribute("foo")%> works in that case...
<%=request.getSession().getAttribute("foo")%>