1 17 18 package org.apache.jasper; 19 20 21 29 public class Constants { 30 31 34 public static final String JSP_SERVLET_BASE = 35 System.getProperty("org.apache.jasper.Constants.JSP_SERVLET_BASE", "org.apache.jasper.runtime.HttpJspBase"); 36 37 42 public static final String SERVICE_METHOD_NAME = 43 System.getProperty("org.apache.jasper.Constants.SERVICE_METHOD_NAME", "_jspService"); 44 45 48 public static final String SERVLET_CONTENT_TYPE = "text/html"; 49 50 54 public static final String [] STANDARD_IMPORTS = { 55 "javax.servlet.*", 56 "javax.servlet.http.*", 57 "javax.servlet.jsp.*" 58 }; 59 60 65 public static final String SERVLET_CLASSPATH = 66 System.getProperty("org.apache.jasper.Constants.SERVLET_CLASSPATH", "org.apache.catalina.jsp_classpath"); 67 68 74 public static final String JSP_FILE = 75 System.getProperty("org.apache.jasper.Constants.JSP_FILE", "org.apache.catalina.jsp_file"); 76 77 78 81 public static final int DEFAULT_BUFFER_SIZE = 8 * 1024; 82 83 86 public static final int DEFAULT_TAG_BUFFER_SIZE = 512; 87 88 91 public static final int MAX_POOL_SIZE = 5; 92 93 97 public static final String PRECOMPILE = 98 System.getProperty("org.apache.jasper.Constants.PRECOMPILE", "jsp_precompile"); 99 100 103 public static final String JSP_PACKAGE_NAME = 104 System.getProperty("org.apache.jasper.Constants.JSP_PACKAGE_NAME", "org.apache.jsp"); 105 106 109 public static final String TAG_FILE_PACKAGE_NAME = 110 System.getProperty("org.apache.jasper.Constants.TAG_FILE_PACKAGE_NAME", "org.apache.jsp.tag"); 111 112 116 public static final String INC_SERVLET_PATH = "javax.servlet.include.servlet_path"; 117 public static final String TMP_DIR = "javax.servlet.context.tempdir"; 118 119 public static final String ALT_DD_ATTR = 121 System.getProperty("org.apache.jasper.Constants.ALT_DD_ATTR", "org.apache.catalina.deploy.alt_dd"); 122 123 127 public static final String TAGLIB_DTD_PUBLIC_ID_11 = 128 "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"; 129 public static final String TAGLIB_DTD_RESOURCE_PATH_11 = 130 "/javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd"; 131 public static final String TAGLIB_DTD_PUBLIC_ID_12 = 132 "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"; 133 public static final String TAGLIB_DTD_RESOURCE_PATH_12 = 134 "/javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd"; 135 136 140 public static final String WEBAPP_DTD_PUBLIC_ID_22 = 141 "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"; 142 public static final String WEBAPP_DTD_RESOURCE_PATH_22 = 143 "/javax/servlet/resources/web-app_2_2.dtd"; 144 public static final String WEBAPP_DTD_PUBLIC_ID_23 = 145 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"; 146 public static final String WEBAPP_DTD_RESOURCE_PATH_23 = 147 "/javax/servlet/resources/web-app_2_3.dtd"; 148 149 155 public static final String [] CACHED_DTD_PUBLIC_IDS = { 156 TAGLIB_DTD_PUBLIC_ID_11, 157 TAGLIB_DTD_PUBLIC_ID_12, 158 WEBAPP_DTD_PUBLIC_ID_22, 159 WEBAPP_DTD_PUBLIC_ID_23, 160 }; 161 public static final String [] CACHED_DTD_RESOURCE_PATHS = { 162 TAGLIB_DTD_RESOURCE_PATH_11, 163 TAGLIB_DTD_RESOURCE_PATH_12, 164 WEBAPP_DTD_RESOURCE_PATH_22, 165 WEBAPP_DTD_RESOURCE_PATH_23, 166 }; 167 168 171 public static final String NS_PLUGIN_URL = 172 "http://java.sun.com/products/plugin/"; 173 174 public static final String IE_PLUGIN_URL = 175 "http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#Version=1,2,2,0"; 176 177 180 public static final String TEMP_VARIABLE_NAME_PREFIX = 181 System.getProperty("org.apache.jasper.Constants.TEMP_VARIABLE_NAME_PREFIX", "_jspx_temp"); 182 183 187 public static final char ESC = '\u001b'; 188 public static final String ESCStr = "'\\u001b'"; 189 190 } 191 | Popular Tags |