How JSP & JSTL access attributes
Some jsp & jstl equivalence in accessing attributes
<%= pageContext.getAttribute("foo") %> == ${pageScope.foo} or ${foo}
<%= request.getAttribute("bar") %> == ${requestScope.bar}
<%= session.getAttribute("frotz") %> == ${sessionScope.frotz}
<%= application.getAttribute("filfre") %> == ${applicationScope.filfre}
Leave a Reply
You must be logged in to post a comment.