Lotus Forms 3.5开发过程中的一点更新

3.5版本比起以前的版本有一点点修改,以前的FormsViewServlet只需要扩展com.ibm.form.webform.framework.servlet.IBMWorkplaceFormsServerServlet类,然后重载init方法

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}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值