JSPTemplates

org.tp23.jasper
Class Constants

java.lang.Object
  |
  +--org.tp23.jasper.Constants

public class Constants
extends java.lang.Object

Some constants and other global data that are used by the compiler and the runtime.

Author:
Anil K. Vijendran, Harish Prabandham, Paul Hinds

Field Summary
static java.lang.String ATTRIB_JSP_ProtectionDomain
          ProtectionDomain to use for JspLoader defineClass() for current Context when using a SecurityManager.
static int DEFAULT_BUFFER_SIZE
           
static java.lang.String IE_PLUGIN_URL
           
static java.lang.String INC_REQUEST_URI
          Servlet context and request attributes that the JSP engine uses.
static java.lang.String INC_SERVLET_PATH
           
static java.lang.String JSP_SERVLET_BASE
          The base class of the generated servlets.
static java.lang.String JSP_TOKEN
          A token which is embedded in file names of the generated servlet.
static int K
          Default size of the JSP buffer.
static java.lang.String NS_PLUGIN_URL
          Default URLs to download the pluging for Netscape and IE.
static java.lang.String PRECOMPILE
          The query parameter that causes the JSP engine to just pregenerated the servlet but not invoke it.
static java.lang.String SERVICE_METHOD_NAME
          _jspService is the name of the method that is called by HttpJspBase.service().
static java.lang.String SERVLET_CLASS_LOADER
          ServletContext attribute for classpath.
static java.lang.String SERVLET_CLASSPATH
          ServletContext attribute for classpath.
static java.lang.String SERVLET_CONTENT_TYPE
          Default servlet content type.
static java.lang.String[] STANDARD_IMPORTS
          These classes/packages are automatically imported by the generated code.
static java.lang.String TAGLIB_DTD_PUBLIC_ID
          ID and location of the DTD for tag library descriptors.
static java.lang.String TAGLIB_DTD_RESOURCE
           
static java.lang.String TMP_DIR
           
static java.lang.String WEBAPP_DTD_PUBLIC_ID
          ID and location of the DTD for web-app deployment descriptors.
static java.lang.String WEBAPP_DTD_RESOURCE
           
 
Constructor Summary
Constants()
           
 
Method Summary
static java.lang.String getString(java.lang.String key)
          Get hold of a "message" or any string from our resources database.
static java.lang.String getString(java.lang.String key, java.lang.Object[] args)
          Format the string that is looked up using "key" using "args".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSP_SERVLET_BASE

public static final java.lang.String JSP_SERVLET_BASE
The base class of the generated servlets.

SERVICE_METHOD_NAME

public static final java.lang.String SERVICE_METHOD_NAME
_jspService is the name of the method that is called by HttpJspBase.service(). This is where most of the code generated from JSPs go.

SERVLET_CONTENT_TYPE

public static final java.lang.String SERVLET_CONTENT_TYPE
Default servlet content type.

STANDARD_IMPORTS

public static final java.lang.String[] STANDARD_IMPORTS
These classes/packages are automatically imported by the generated code. FIXME: Need to trim this to what is there in PR2 and verify with all our generators -akv.

SERVLET_CLASSPATH

public static final java.lang.String SERVLET_CLASSPATH
ServletContext attribute for classpath. This is tomcat specific. Other servlet engines can choose to have this attribute if they want to have this JSP engine running on them.

SERVLET_CLASS_LOADER

public static final java.lang.String SERVLET_CLASS_LOADER
ServletContext attribute for classpath. This is tomcat specific. Other servlet engines can choose to have this attribute if they want to have this JSP engine running on them.

K

public static final int K
Default size of the JSP buffer.

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE

PRECOMPILE

public static final java.lang.String PRECOMPILE
The query parameter that causes the JSP engine to just pregenerated the servlet but not invoke it.

INC_REQUEST_URI

public static final java.lang.String INC_REQUEST_URI
Servlet context and request attributes that the JSP engine uses.

INC_SERVLET_PATH

public static final java.lang.String INC_SERVLET_PATH

TMP_DIR

public static final java.lang.String TMP_DIR

ATTRIB_JSP_ProtectionDomain

public static final java.lang.String ATTRIB_JSP_ProtectionDomain
ProtectionDomain to use for JspLoader defineClass() for current Context when using a SecurityManager.

JSP_TOKEN

public static final java.lang.String JSP_TOKEN
A token which is embedded in file names of the generated servlet.

TAGLIB_DTD_PUBLIC_ID

public static final java.lang.String TAGLIB_DTD_PUBLIC_ID
ID and location of the DTD for tag library descriptors.

TAGLIB_DTD_RESOURCE

public static final java.lang.String TAGLIB_DTD_RESOURCE

WEBAPP_DTD_PUBLIC_ID

public static final java.lang.String WEBAPP_DTD_PUBLIC_ID
ID and location of the DTD for web-app deployment descriptors.

WEBAPP_DTD_RESOURCE

public static final java.lang.String WEBAPP_DTD_RESOURCE

NS_PLUGIN_URL

public static final java.lang.String NS_PLUGIN_URL
Default URLs to download the pluging for Netscape and IE.

IE_PLUGIN_URL

public static final java.lang.String IE_PLUGIN_URL
Constructor Detail

Constants

public Constants()
Method Detail

getString

public static final java.lang.String getString(java.lang.String key)
Get hold of a "message" or any string from our resources database.

getString

public static final java.lang.String getString(java.lang.String key,
                                               java.lang.Object[] args)
Format the string that is looked up using "key" using "args".

JSPTemplates