Why there is a need of pageContext in JSP?
问题 When we can access all the implicit variables in JSP, why do we have pageContext ? My assumption is the following: if we use EL expressions or JSTL, to access or set the attributes we need pageContext . Let me know whether I am right. 回答1: You need it to access non -implicit variables. Does it now make sense? Update : Sometimes would just like to access the getter methods of HttpServletRequest and HttpSession directly. In standard JSP, both are only available by ${pageContext} . Here are some