生成的 .java 文件
当 JSP 引擎的 keepgenerated 配置参数设置为 true 时,.java将保留为 JavaServer Pages (JSP) 生成的文件。 该.java文件包含在调试中有用的信息。
依赖项信息
在.java文件,紧跟在类声明之后,如果源 JSP 具有任何依赖关系,那么将定义从属文件的数组。 有三种文件作为从属文件跟踪:
- JSP 中静态包含的文件
- JSP 使用的标记文件,但只有不在 Java™ 归档 (JAR) 文件中的标记文件
- JSP 使用的 TLD 文件,但是不包含 JAR 文件中的 TLD 文件
始终生成该数组,但仅当 trackDependencies 参数设为 true 时,JSP 引擎才使用它来确定是否需要重新编译 JSP。
在以下示例中,三个 JSP 片段,一个 TLD 和一个标记文件是 JSP jsp1.jsp的依赖关系。 每个数组条目有三个部分:
- 到与 Web 模块上下文根相关的从属文件的路径。 例如:/dir1/frag1.jspf
- 表示文件最近一次修改时间的长整型值。 例如:1082407108000
- 长整型值的字符串表示法。 例如:Mon Apr 19 16:38:28 EDT 2004
public final class _jsp1 extends com.ibm.ws.jsp.runtime.HttpJspBase
implements com.ibm.ws.jsp.runtime.JspClassInformation {
private static String[] _jspx_dependants;
static {
_jspx_dependants = new String[5];
_jspx_dependants[0] = "/Banner.jspf^1082407108000^Mon Apr 19 16:38:28 EDT 2004";
_jspx_dependants[1] = "/Footer.jspf^1077657462000^Tue Feb 24 16:17:42 EST 2004";
_jspx_dependants[2] = "/dir1/frag1.jspf^1035396680000^Wed Oct 23 14:11:20 EDT 2002";
_jspx_dependants[3] = "/utility.tld^1080069938000^Tue Mar 23 14:25:38 EST 2004";
_jspx_dependants[4] = "/WEB-INF/tags/top.tag^1065440490000^Mon Oct 06 07:41:30 EDT 2003";
}
版本、JSP 引擎选项和 WEB.XML 信息
生成的 .java 源代码包含注释,该注释列出位于所生成文件末尾的文件的信息。 此信息包含:
- 日期和时间.java已生成文件
- WebSphere® Application Server 的版本,构建号和构建日期。.java 已生成文件
- 生成文件时有效的 JSP 引擎配置参数的值
- 任何值<jsp-config>元素中的元素web.xml与源 JSP 文件相关的文件。
/*
profile_root/installedApps/MyCell/sampleApp.ear/examples.war/WEB-INF/classes/_ibmjsp/_jsp1.java
was generated @ Wed May 03 10:05:56 EDT 2006
![[z/OS]](../images/ngzos.svg)
profile_root/AppSrv01/installedApps/MyCell/sampleApp.ear/examples.war/WEB-INF/classes/_ibmjsp/_jsp1.java
was generated @ Wed May 03 10:05:56 EDT 2006
IBM WebSphere Application Server - ND, 6.1.0.0
Build Number: o0441.04
Build Date: 05/01/06
********************************************************
The JSP engine configuration parameters were set as follows:
classDebugInfo = [false]
debugEnabled = [false]
deprecation = [false]
compileWithAssert = [false]
jdkSourceLevel = [13]
disableJspRuntimeCompilation =[false]
extendedDocumentRoot = [null]
ieClassId = [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93]
keepGenerated = [true]
outputDir = [/QIBM/UserData/WebSphere/AppServer/V6/ND/profiles/AppSrv01/installedApps/MyCell/sampleApp.ear/examples.war/WEB-INF/classes]
![[z/OS]](../images/ngzos.svg)
outputDir = [C:/WebSphere_6.0/AppServer/profiles/AppSrv01/installedApps/MyCell/sampleApp.ear/examples.war/WEB-INF/classes]
reloadEnabled = [true]
reloadEnabledSet = [true]
reloadInterval = [5000]
trackDependencies = [false]
usePageTagPool = [false]
useThreadTagPool = [true]
useImplicitTagLibs = [true]
verbose = [false]
looseLibMap = [null]
useJikes = [false]
useFullPackageNames = [true]
translationContextClass = [null]
extensionProcessorClass = [null]
javaEncoding = [UTF-8]
autoResponseEncoding = [false]
********************************************************
The following JSP Configuration Parameters were obtained from web.xml:
prelude list = [[]]
coda list = [[]]
elIgnored = [false]
pageEncoding = [null]
isXML = [false]
scriptingInvalid = [false]
*/