생성된 .java 파일
JSP 엔진의 keepgenerated 구성 매개변수가 true로 설정될 때, JSP(JavaServer Pages)에 대해 생성되는 .java 파일이 유지됩니다. .java 파일에는 디버깅에서 유용한 정보가 들어 있습니다.
종속성 정보
.java 파일에서 클래스 선언 직후, 소스 JSP에 종속성이 있을 경우 종속 파일의 배열이 정의됩니다. 종속성으로 추적되는 다음 세 가지 유형의 파일이 있습니다.
- JSP에 정적으로 포함되는 파일
- JSP에 의해 사용되는 태그 파일(JAR(Java™ Archive) 파일에는 없는 태그 파일만)
- JSP가 사용하는 TLD 파일(JAR 파일에 없는 TLD만 해당)
이 배열은 항상 생성되지만 JSP 엔진은 trackDependencies 매개변수가 true로 설정된 경우에만 JSP를 다시 컴파일할 필요가 있는지 여부를 판별하는데 이를 사용합니다.
다음 예에서, 세 개의 JSP 단편, 하나의 TLD 및 하나의 태그 파일이 JSP jsp1.jsp의
종속성입니다. 각 배열 항목에는 다음의 세 가지 파트가 있습니다.
- 웹 모듈의 컨텍스트 루트에 상대적인 종속성에 대한 경로입니다. 예: /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 파일이 생성된 날짜 및 시간
- .java 파일이 생성된 WebSphere® Application Server의 버전, 빌드 번호 그리고 빌드 날짜
- 파일이 생성될 때 효력을 가지는 JSP 엔진 구성 매개변수의 값
- 소스 JSP 파일에 속하는 web.xml 파일에 있는 모든 <jsp-config> 요소의 값.
/*
profile_root/installedApps/MyCell/sampleApp.ear/examples.war/WEB-INF/classes/_ibmjsp/_jsp1.java
was generated @ Wed May 03 10:05:56 EDT 2006![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
profile_root/AppSrv01/installedApps/MyCell/sampleApp.ear/examples.war/WEB-INF/classes/_ibmjsp/_jsp1.java
was generated @ Wed May 03 10:05:56 EDT 2006IBM 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]
![[AIX Solaris HP-UX Linux Windows]](../images/dist.gif)
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]
*/