JSP EL scans the page, then requests, then the session, then the application.
If you want to access the session explicitly, use
${sessionScope.name}
In the context of a servlet, use
${applicationScope.name}
(and similarly for pageScope and requestScope )
source share