Why there is a need of pageContext in JSP?

前端 未结 3 1454
执念已碎
执念已碎 2020-12-23 12:32

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 acc

3条回答
  •  粉色の甜心
    2020-12-23 12:53

    To add to @BalusC's excellent answer, the PageContext that you are getting might not be limited to what you see in the specification.

    For example, Lucee is a JSP Servlet that adds many features to the interface and abstract classes. By getting a reference to the PageContext you can gain access to a lot of information that is otherwise unavailable.

提交回复
热议问题