PageContext « Tag « JSP-Servlet Q&A





1. Can a JSP tag file access its calling JSP's PageContext?    stackoverflow.com

If I do:

<% pageContext.setAttribute("foo", "bar"); %>
<custom:myTag/>
it seems like I should be able to do:
<%= pageContext.getAttribute("foo") %>
inside of myTag.tag ... but of course I can't because the tag file doesn't have access ...

3. pagecontext in tag libs    coderanch.com