|
如题:原因找的不容易,发到bbs上来给大家分享,期待立即解决,很急。
附business.jsp正文 罪魁祸首
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.lang.reflect.Method" %>
<%@ page import="com.justep.loader.LibContext"%>
<%
Class pclass = LibContext.getInstance().getLoader().loadClass("com.justep.web.SysServerProvider");
Object pobj = pclass.newInstance();
Method getBXClassIDMethod = pclass.getMethod("getBXClassID",new Class[]{});
Method getBXCodeMethod = pclass.getMethod("getBXCodebase",new Class[]{});
//目前采用参数方式传递登录信息,不安全
String url = "http://" + request.getServerName() + ":" + Integer.toString(request.getServerPort()) + "/x3/bizserver";
String funcurl = null;
String user = request.getParameter("user");
String pass = request.getParameter("pass");
String classId = (String)getBXClassIDMethod.invoke(pobj,new Object[]{});
String codeBase = (String)getBXCodeMethod.invoke(pobj,new Object[]{});
if (funcurl == null) {
funcurl = "Biz:\\SYSTEM\\INIT.FUNC";
}
if (user == null) {
user = "system";
}
if (pass == null) {
pass = "justep!@#";
}
%>
<HTML>
<HEAD>
<title>X3 协同管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script type="text/javascript">
/**
* 下列代码用于关闭页面时销毁x3xa.ocx
*/
window.recycler=(function(){ var t=document.createElement('div');t.id="recycler";return t;})();
function newRemove1(id) {
return typeof(id)=='string'?document.getElementById(id):id;
}
function newRemove(el) {
el=newRemove1(el);
if (el && window.recycler){
window.recycler.appendChild(el);
window.recycler.innerHTML="";
el.removeNode(true);
el = null;
delete el;
}
CollectGarbage();
}
//页面关闭时触发,用于销毁x3xa.ocx对象
function dounload() {
//alert("x3xa.jsp is unloading..!");
X3X.Run2("", ""); //terminate x3xa.ocx
var obj = document.getElementById("X3X");
obj.style.display = "none";
newRemove("X3X");
}
/**
* 下列代码供其他页面调用,打开代办任务或业务功能
*/
function runTask(taskGUID, showModal) {
X3X.Invokemethod('RunTask', taskGUID);
}
function runFunc(funcUrl, showModal) {
X3X.Invokemethod('RunFunc', funcUrl);
}
</script>
</HEAD>
<BODY leftmargin="0" topmargin="0" scroll="no" onUnload="dounload()">
<OBJECT id = "X3X"
classid="<%=classId%>"
codebase="<%=codeBase%>"
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="X3X" EVENT="OnTerminate">
//WebBrowser.ExecWB(45,1); // close window
</script>
<script ID="RTEventHandler" language="javascript" FOR="X3X" EVENT="OnRTEvent(Param)">
//X3脚本事件
//可以在脚本中执行RTEvent.Execute('Param1');最终调用会执行到这里,Param1的内容格式可以自定义
//Param变量的内容就是传出的字符串(Param1)。
</script>
<script type="text/javascript">
function BeforeClose() {
//alert("Business_ext.jsp beforeunload");
if(!X3X.TerminateQuery()) {
event.returnValue = "";
}
}
//alert("<%= funcurl%>");
X3X.ServerURL = "<%= url%>";
X3X.UpdateVersion();
//设置此属性,允许在ie中运行多个ocx
X3X.MultiWindow=true;
X3X.Init();
X3X.Logon("<%= user%>","<%= pass%>");
X3X.Run("<%= funcurl%>","","","");
//X3X.Run2("<%= funcurl%>","user=<%= user%>;pass=<%= pass%>");
document.body.onbeforeunload=BeforeClose;
document.title = X3X.DisplayName;
</script>
</BODY>
</HTML>
|
|