| career | drupal | java | mac | mysql | perl | scala | uml | unix  

Tomcat example source code file (

This example Tomcat source code file ( is included in the "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Tomcat tags/keywords

microsystems, microsystems, string, string, sun, sun, tag, taglib_dtd_public_id_11, taglib_dtd_public_id_12, taglib_dtd_resource_path_11, taglib_dtd_resource_path_12, webapp_dtd_resource_path_22, webapp_dtd_resource_path_22, webapp_dtd_resource_path_23

The Tomcat source code

 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.

package org.apache.jasper;

 * Some constants and other global data that are used by the compiler and the runtime.
 * @author Anil K. Vijendran
 * @author Harish Prabandham
 * @author Shawn Bayern
 * @author Mark Roth
public class Constants {
     * The base class of the generated servlets. 
    public static final String JSP_SERVLET_BASE = 
        System.getProperty("org.apache.jasper.Constants.JSP_SERVLET_BASE", "org.apache.jasper.runtime.HttpJspBase");

     * _jspService is the name of the method that is called by 
     * HttpJspBase.service(). This is where most of the code generated
     * from JSPs go.
    public static final String SERVICE_METHOD_NAME = 
        System.getProperty("org.apache.jasper.Constants.SERVICE_METHOD_NAME", "_jspService");

     * Default servlet content type.
    public static final String SERVLET_CONTENT_TYPE = "text/html";

     * These classes/packages are automatically imported by the
     * generated code. 
    public static final String[] STANDARD_IMPORTS = { 

     * ServletContext attribute for classpath. This is tomcat specific. 
     * Other servlet engines may choose to support this attribute if they 
     * want to have this JSP engine running on them. 
    public static final String SERVLET_CLASSPATH = 
        System.getProperty("org.apache.jasper.Constants.SERVLET_CLASSPATH", "org.apache.catalina.jsp_classpath");

     * Request attribute for <code><jsp-file> element of a
     * servlet definition.  If present on a request, this overrides the
     * value returned by <code>request.getServletPath() to select
     * the JSP page to be executed.
    public static final String JSP_FILE = 
        System.getProperty("org.apache.jasper.Constants.JSP_FILE", "org.apache.catalina.jsp_file");

     * Default size of the JSP buffer.
    public static final int DEFAULT_BUFFER_SIZE = 8 * 1024;

     * Default size for the tag buffers.
    public static final int DEFAULT_TAG_BUFFER_SIZE = 512;

     * Default tag handler pool size.
    public static final int MAX_POOL_SIZE = 5;

     * The query parameter that causes the JSP engine to just
     * pregenerated the servlet but not invoke it. 
    public static final String PRECOMPILE = 
        System.getProperty("org.apache.jasper.Constants.PRECOMPILE", "jsp_precompile");

     * The default package name for compiled jsp pages.
    public static final String JSP_PACKAGE_NAME = 
        System.getProperty("org.apache.jasper.Constants.JSP_PACKAGE_NAME", "org.apache.jsp");

     * The default package name for tag handlers generated from tag files
    public static final String TAG_FILE_PACKAGE_NAME = 
        System.getProperty("org.apache.jasper.Constants.TAG_FILE_PACKAGE_NAME", "org.apache.jsp.tag");

     * Servlet context and request attributes that the JSP engine
     * uses. 
    public static final String INC_SERVLET_PATH = "javax.servlet.include.servlet_path";
    public static final String TMP_DIR = "javax.servlet.context.tempdir";

    // Must be kept in sync with org/apache/catalina/
    public static final String ALT_DD_ATTR = 
        System.getProperty("org.apache.jasper.Constants.ALT_DD_ATTR", "org.apache.catalina.deploy.alt_dd");

     * Public Id and the Resource path (of the cached copy) 
     * of the DTDs for tag library descriptors. 
    public static final String TAGLIB_DTD_PUBLIC_ID_11 = 
	"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN";
    public static final String TAGLIB_DTD_RESOURCE_PATH_11 = 
    public static final String TAGLIB_DTD_PUBLIC_ID_12 = 
	"-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN";
    public static final String TAGLIB_DTD_RESOURCE_PATH_12 = 

     * Public Id and the Resource path (of the cached copy) 
     * of the DTDs for web application deployment descriptors
    public static final String WEBAPP_DTD_PUBLIC_ID_22 = 
	"-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN";
    public static final String WEBAPP_DTD_RESOURCE_PATH_22 = 
    public static final String WEBAPP_DTD_PUBLIC_ID_23 = 
	"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN";
    public static final String WEBAPP_DTD_RESOURCE_PATH_23 = 

     * List of the Public IDs that we cache, and their
     * associated location. This is used by 
     * an EntityResolver to return the location of the
     * cached copy of a DTD.
    public static final String[] CACHED_DTD_PUBLIC_IDS = {
    public static final String[] CACHED_DTD_RESOURCE_PATHS = {
     * Default URLs to download the pluging for Netscape and IE.
    public static final String NS_PLUGIN_URL = 

    public static final String IE_PLUGIN_URL = 

     * Prefix to use for generated temporary variable names
    public static final String TEMP_VARIABLE_NAME_PREFIX =
        System.getProperty("org.apache.jasper.Constants.TEMP_VARIABLE_NAME_PREFIX", "_jspx_temp");

     * A replacement char for "\$".
     * XXX This is a hack to avoid changing EL interpreter to recognize "\$"
    public static final char ESC = '\u001b';
    public static final String ESCStr = "'\\u001b'";

     * Has security been turned on?
    public static final boolean IS_SECURITY_ENABLED = 
        (System.getSecurityManager() != null);

     * The name of the path parameter used to pass the session identifier
     * back and forth with the client.
    public static final String SESSION_PARAMETER_NAME = "jsessionid";


Other Tomcat examples (source code examples)

Here is a short list of links related to this Tomcat source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.