2011년 7월 13일 수요일

[WebSphere] JSP 파일의 .java 생성 위치 지정하기

JSP에 대한 .java를 생성하기 위해서는 keepgenerated옵션을 ibm-web-ext.xmi에 설정하면 됩니다.

<jspAttributes xmi:id="JSPAttribute_7" name="keepgenerated" value="true"/>
<jspAttributes xmi:id="JSPAttribute_8" name="scratchdir" value="c:\WebSphere\scratchdir"/>

scratchdir
value: full path to the scratchdir directory

The system property com.ibm.websphere.servlet.temp.dir is used to set the scratchdir option on a server-wide basis. The JSP engine scratchdir parameter takes precedence over the system property com.ibm.websphere.servlet.temp.dir. The default for this parameter is profile_root /temp. This parameter requires regeneration of Java source.

 문제 예방:  Do not specify a directory path that places the JSP temporary directory at the same level or underneath the configuration temporary directory. The default location for the configuration temporary directory is profile_home/config/temp.
For example, if you change the location of the JSP temporary directory to also be profile_home/config/temp. or if you place the JSP temporary directory underneath the configuration temporary directory at profile_home/config/temp/temp, processing errors occur.


keepgenerated
Indicates that the Java files generated by the JSP compiler during the translation phase of the processing are retained. The default for this parameter is false. This parameter requires regeneration of Java source

댓글 없음:

댓글 쓰기