|
通过以下JSP到X3,2258版本,tomcat。
问题1:
第一次进入正常,但在点X3注消时报“不能注消”;
问题2:
第一次进入正常后,关闭X3的IE窗口,再次点相应链接进入X3,报“DAX error "见本主题最后的图。只有完全关闭调用它的IE窗口后才能不报错。
请问这个问题能解决吗?
<%@ page contentType="text/html; charset=gb2312" %>
<jsp:useBean id="lSysServer" class="com.justep.BizWebApp.SysServerProvider" />
<%
String username = request.getParameter("username");
String password = request.getParameter("password");
boolean notNull = false;
if(username != null && password != null){
notNull = true;
}
%>
<HTML>
<HEAD>
<title>>X3 协同管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY leftmargin="0" topmargin="0" scroll="no">
<%--<%=username%><br>
<%=password%><br>
<%=notNull%>
AuotLogon<br>
<%= lSysServer.getSysServerURL()%>--%>
<OBJECT id = "BusinessX"
classid="<%= lSysServer.getBXClassID()%>"
codebase="<%= lSysServer.getBXCodebase()%>"
width="100%"
height="100%"
align=center
hspace=0
vspace=0
>
</OBJECT>
<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
</object>
<script ID="BusinessCloseEventHandler" language="javascript" FOR="BusinessX" EVENT="OnTerminate">
WebBrowser.ExecWB(45,1); // close window
</script>
<script type="text/javascript">
var username = "<%=username%>";
var pwd = "<%=password%>";
function BeforeClose()
{
if(!BusinessX.TerminateQuery())
{
event.returnValue = "";
}
}
document.title = BusinessX.DisplayName;
BusinessX.ServerURL = "<%= lSysServer.getSysServerURL()%>"
BusinessX.ShowSplash();
BusinessX.UpdateVersion();
BusinessX.Init();
BusinessX.CloseSplash();
<% if(notNull) { %>
BusinessX.Logon(username,pwd);
<% } %>
//BusinessX.Logon("zhangy","4321");
BusinessX.Run("Biz:\System\Init.Func", "", "", "");
document.body.onbeforeunload=BeforeClose;
document.title = BusinessX.DisplayName;
</script>
</BODY>
</HTML>
|
|