WebSphere Application Server

本主题描述了需要设置哪些首选项,才能将 AppScan® 源 配置为引用 WebSphere® Application Server 以进行 JSP 编译。

要了解 AppScan 源 支持哪个版本的 WebSphere Application Server,请参阅系统需求和安装必备软件

WebSphere Application Server 首选项页面中,请指定服务器安装目录,并且可设置高级配置选项。指定此安装目录将使 AppScan 源 能够找到并使用 WebSphere Application Server JSP 编译器。

AppScan 源 配置为引用 WebSphere Application Server 安装目录。此外,高级配置选项使您能够设置 WebSphere Application Server JSP 编译器命令行和类路径。

请仅在要定制 WebSphere Application Server JSP 命令行或指定缺省 WebSphere Application Server 类路径(如果想要在所有 WebSphere Application Server 应用程序所使用的类路径中包含其他 jar,请更改此设置)以外的类路径的情况下选中启用高级配置选项复选框。

缺省 WebSphere Application Server JSP 编译器命令行选项为:

%CMD_EXE% %CMD_ARGS% 
'%FILE(%%JSP_COMPILER_INSTALL_DIR%/bin/JspBatchCompiler%BAT%%)%' 
-response.file 
'%TMP_FILE(%-keepgenerated=true -recurse=true -useFullPackageNames=true 
-verbose=false -createDebugClassfiles=true -jsp.file.extensions=%WEB_EXTS% 
-javaEncoding=%ENCODING% 
%JSP_OPTIONS% %QUOTE%-war.path=%WEB_CONTEXT_ROOT_PATH%%QUOTE% 
%QUOTE%-filename=%RELATIVE_FILENAME_NO_QUOTE% %QUOTE%  %)%'