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

xiaoxiao2026-09-10  13

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 = 681MAJOR_VERSION = 3MINOR_VERSION = 5MAINT_VERSION = 0CORE_MAJOR_VERSION = 7CORE_MINOR_VERSION = 6CORE_MAINT_VERSION = 0API_MAJOR_VERSION = 7API_MINOR_VERSION = 6API_MAINT_VERSION = 0API_BUILD_NUMBER = 260PKIOPS_BUILD_NUMBER = 18AC_DB_SCHEMA_VERSION = 7.6.0.5#EXPIRATION_YEAR = ${wsVer.EXPIRATION_YEAR}#EXPIRATION_MONTH = ${wsVer.EXPIRATION_MONTH}#EXPIRATION_DATE = ${wsVer.EXPIRATION_DATE} 相关资源:敏捷开发V1.0.pptx
转载请注明原文地址: https://www.6miu.com/read-5052463.html

最新回复(0)