But I cannot understand because getJspContext(); don't returns a PageContext object... Somebody knows?
True, but PageContext extends JspContext
The JspContext is described like this:
JspContext serves as the base class for the PageContext class and abstracts all
information that is not specific to servlets. This allows for Simple Tag Extensions
to be used outside of the context of a request/response Servlet.
As we are using SimpleTags always in an environment that is Servlet-based (in JSPs, those are Servlets) you can safely downcast the JspContext to the PageContext object.
Joined: Aug 14, 2010
subject: [OCWCD] How can I get pageContext in SimpleTagSupport Object