JSPTemplates

org.tp23.jasper.servlet
Class JspServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--org.tp23.jasper.servlet.JspServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JspServlet
extends javax.servlet.http.HttpServlet

The JSP engine (a.k.a Jasper)! Not used but required for compilation.

Author:
Anil K. Vijendran, Harish Prabandham, Paul Hinds
See Also:
Serialized Form

Field Summary
protected  javax.servlet.ServletConfig config
          Description of the Field
protected  javax.servlet.ServletContext context
          Description of the Field
protected  ServletEngine engine
          Description of the Field
protected  java.util.Hashtable jsps
          Description of the Field
protected  JasperLoader loader
          Description of the Field
protected  Options options
          Description of the Field
protected  java.lang.ClassLoader parentClassLoader
          Description of the Field
protected  java.lang.String serverInfo
          Description of the Field
 
Constructor Summary
JspServlet()
           
 
Method Summary
 void destroy()
          Description of the Method
protected  boolean doLoadJSP(java.lang.String jspUri, java.lang.String classpath, boolean isErrorPage, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Description of the Method
 void init(javax.servlet.ServletConfig config)
          Description of the Method
 boolean isOutDated(java.io.File jsp, JspCompilationContext ctxt, Mangler mangler)
          Determines whether the current JSP class is older than the JSP file from whence it came
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Description of the Method
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, 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
 

Field Detail

context

protected javax.servlet.ServletContext context
Description of the Field

jsps

protected java.util.Hashtable jsps
Description of the Field

config

protected javax.servlet.ServletConfig config
Description of the Field

loader

protected JasperLoader loader
Description of the Field

options

protected Options options
Description of the Field

parentClassLoader

protected java.lang.ClassLoader parentClassLoader
Description of the Field

engine

protected ServletEngine engine
Description of the Field

serverInfo

protected java.lang.String serverInfo
Description of the Field
Constructor Detail

JspServlet

public JspServlet()
Method Detail

isOutDated

public boolean isOutDated(java.io.File jsp,
                          JspCompilationContext ctxt,
                          Mangler mangler)
Determines whether the current JSP class is older than the JSP file from whence it came
Parameters:
jsp - Description of Parameter
ctxt - Description of Parameter
mangler - Description of Parameter
Returns:
The outDated value

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Description of the Method
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
config - Description of Parameter
Throws:
javax.servlet.ServletException - Description of Exception

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException,
                    java.io.IOException
Description of the Method
Overrides:
service in class javax.servlet.http.HttpServlet
Parameters:
request - Description of Parameter
response - Description of Parameter
Throws:
javax.servlet.ServletException - Description of Exception
java.io.IOException - Description of Exception

destroy

public void destroy()
Description of the Method
Overrides:
destroy in class javax.servlet.GenericServlet

doLoadJSP

protected boolean doLoadJSP(java.lang.String jspUri,
                            java.lang.String classpath,
                            boolean isErrorPage,
                            javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse res)
                     throws JasperException,
                            java.io.FileNotFoundException
Description of the Method
Parameters:
jspUri - Description of Parameter
classpath - Description of Parameter
isErrorPage - Description of Parameter
req - Description of Parameter
res - Description of Parameter
Returns:
Description of the Returned Value
Throws:
JasperException - Description of Exception
java.io.FileNotFoundException - Description of Exception

JSPTemplates