Class JspToolContext

  • All Implemented Interfaces:
    org.apache.velocity.context.Context, ViewContext

    public class JspToolContext
    extends ViewToolContext

    Velocity context implementation specific to the JSP environment.

    Version:
    $Id: ViewContext.java 514727 2007-03-05 16:49:03Z nbubna $
    Author:
    Nathan Bubna
    • Constructor Detail

      • JspToolContext

        public JspToolContext​(org.apache.velocity.app.VelocityEngine velocity,
                              javax.servlet.jsp.PageContext pageContext)
    • Method Detail

      • getPageContext

        public javax.servlet.jsp.PageContext getPageContext()
      • getServletApi

        protected Object getServletApi​(String key)
        Description copied from class: ViewToolContext
        Returns the current matching servlet request, response, session, or servlet context instance, or null if the key matches none of those keys.
        Overrides:
        getServletApi in class ViewToolContext