Class JspContext


  • public class JspContext
    extends java.lang.Object
    The context of the jsp page. Includes the current jsp writer and the servlet request/response. Using this objects you can write the content of the jsp.
    • Constructor Summary

      Constructors 
      Constructor Description
      JspContext​(javax.servlet.jsp.JspWriter out, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.servlet.jsp.JspWriter getJspWriter()  
      javax.servlet.http.HttpServletRequest getServletRequest()  
      javax.servlet.http.HttpServletResponse getServletResponse()  
      void print​(java.lang.String string)  
      void println​(java.lang.String string)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NULL_CONTEXT

        public static final JspContext NULL_CONTEXT
    • Constructor Detail

      • JspContext

        public JspContext​(javax.servlet.jsp.JspWriter out,
                          javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
    • Method Detail

      • getJspWriter

        public javax.servlet.jsp.JspWriter getJspWriter()
      • getServletRequest

        public javax.servlet.http.HttpServletRequest getServletRequest()
      • getServletResponse

        public javax.servlet.http.HttpServletResponse getServletResponse()
      • print

        public void print​(java.lang.String string)
      • println

        public void println​(java.lang.String string)