3.5版本比起以前的版本有一点点修改,以前的FormsViewServlet只需要扩展com.ibm.form.webform.framework.servlet.IBMWorkplaceFormsServerServlet类,然后重载init方法
在新的3.5版本中,除了要扩展IBMWorkplaceFormsServerServlet类,init方法也要改为
同时要创建一个properties文件----WS.properties,在项目的\WebContent文件夹下
super.init(arg0);
try
{
// Initialize the api with server's default locale
DTK.initializeWithLocale("Webform Server",
"7.5.1.80",
"7.5.1.80", null);
DTK.setHardGCFlag(false);
}
catch (UWIException e)
{
// Create a locale-sensitive error message formatted for the server's locale.
e.printStackTrace();
}
在新的3.5版本中,除了要扩展IBMWorkplaceFormsServerServlet类,init方法也要改为
super.init();
try
{
WSProperties wsProps = new WSProperties(getClass());
// Initialize the api with server's default locale
DTK.initializeWithLocale("Webform Server", wsProps.getCoreVersionText(), wsProps.getAPIVersionText(), null);
DTK.setHardGCFlag(false);
}
catch (UWIException e)
{
e.printStackTrace();
}
同时要创建一个properties文件----WS.properties,在项目的\WebContent文件夹下
BUILD_TYPE =
BUILD_NUMBER = 681
MAJOR_VERSION = 3
MINOR_VERSION = 5
MAINT_VERSION = 0
CORE_MAJOR_VERSION = 7
CORE_MINOR_VERSION = 6
CORE_MAINT_VERSION = 0
API_MAJOR_VERSION = 7
API_MINOR_VERSION = 6
API_MAINT_VERSION = 0
API_BUILD_NUMBER = 260
PKIOPS_BUILD_NUMBER = 18
AC_DB_SCHEMA_VERSION = 7.6.0.5
#EXPIRATION_YEAR = ${wsVer.EXPIRATION_YEAR}
#EXPIRATION_MONTH = ${wsVer.EXPIRATION_MONTH}
#EXPIRATION_DATE = ${wsVer.EXPIRATION_DATE}