com.arsdigita.web
Class BaseJSP

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.arsdigita.web.BaseServlet
              extended bycom.arsdigita.web.BaseJSP
All Implemented Interfaces:
javax.servlet.jsp.HttpJspPage, javax.servlet.jsp.JspPage, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public abstract class BaseJSP
extends BaseServlet
implements javax.servlet.jsp.HttpJspPage

A base servlet for use by JSP authors who want to use the execution environment that BaseServlet provides. A JSP will use this class if the extends attribute of the page declaration is set to this class, as in this example:

 <%@page extends="com.arsdigita.web.BaseJSP" %>
 <%= Web.getContext().getUser().toString() %>
 

Version:
$Id: //core-platform/dev/src/com/arsdigita/web/BaseJSP.java#10 $
Author:
Justin Ross <jross@redhat.com>
See Also:
BaseServlet, Serialized Form

Field Summary
static String versionId
           
 
Fields inherited from class com.arsdigita.web.BaseServlet
REQUEST_URL_ATTRIBUTE
 
Constructor Summary
BaseJSP()
           
 
Method Summary
abstract  void _jspService(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp)
          The method that JSP compilers will override to produce the body of the page.
protected  void doService(javax.servlet.http.HttpServletRequest sreq, javax.servlet.http.HttpServletResponse sresp)
          Invokes the _jspService(sreq, sresp) method in the environment prepared by BaseServlet.
 void jspDestroy()
           
 void jspInit()
           
 
Methods inherited from class com.arsdigita.web.BaseServlet
destroy, doDestroy, doGet, doInit, doPost, getUserContext, init
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Servlet
destroy, getServletConfig, getServletInfo, init, service
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

BaseJSP

public BaseJSP()
Method Detail

doService

protected final void doService(javax.servlet.http.HttpServletRequest sreq,
                               javax.servlet.http.HttpServletResponse sresp)
                        throws javax.servlet.ServletException,
                               IOException

Invokes the _jspService(sreq, sresp) method in the environment prepared by BaseServlet.

Overrides:
doService in class BaseServlet
Throws:
javax.servlet.ServletException
IOException
See Also:
_jspService(HttpServletRequest,HttpServletResponse), BaseServlet, BaseServlet.doService(HttpServletRequest,HttpServletResponse)

_jspService

public abstract void _jspService(javax.servlet.http.HttpServletRequest sreq,
                                 javax.servlet.http.HttpServletResponse sresp)
                          throws javax.servlet.ServletException,
                                 IOException

The method that JSP compilers will override to produce the body of the page.

Specified by:
_jspService in interface javax.servlet.jsp.HttpJspPage
Throws:
javax.servlet.ServletException
IOException
See Also:
HttpJspPage._jspService(HttpServletRequest,HttpServletResponse)

jspInit

public void jspInit()
Specified by:
jspInit in interface javax.servlet.jsp.JspPage

jspDestroy

public void jspDestroy()
Specified by:
jspDestroy in interface javax.servlet.jsp.JspPage


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC