配置文件没有什么问题:
你在端口后面加上/x3/Business.jsp快么?
如果不快的话你修改一下tomcat/webapps/x3目录下面的Business.jsp(复制出来一份,比如叫Business1.jsp),然后修改Business1.jsp的内容为:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.justep.loader.LibContext"%>
<%@ page import="java.lang.reflect.Method" %>
<%
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[]{});
Method getSysServerURLMethod = pclass.getMethod("getSysServerURL",new Class[]{});
Method getClientPathMethod = pclass.getMethod("getClientPath",new Class[]{});
Method getVersionMethod = pclass.getMethod("getVersion",new Class[]{});
Method getVersionKeyMethod = pclass.getMethod("getVersionKey",new Class[]{});
Method getVersionHashMethod = pclass.getMethod("getVersionHash",new Class[]{});
String classId = (String)getBXClassIDMethod.invoke(pobj,new Object[]{});
String codeBase = (String)getBXCodeMethod.invoke(pobj,new Object[]{});
String url = "http://" + request.getServerName() + ":" + Integer.toString(request.getServerPort()) +
"/x3/";
String clientPath = (String)getClientPathMethod.invoke(pobj,new Object[]{});
String version = (String)getVersionMethod.invoke(pobj,new Object[]{});
String versionKey = (String)getVersionKeyMethod.invoke(pobj,new Object[]{});
String versionHash = (String)getVersionHashMethod.invoke(pobj,new Object[]{});
String params = " -s" + url;
if (clientPath != null && !"".equals(clientPath))
params = params + " -p" + clientPath;
if (version != null && !"".equals(version))
params = params + " -vid" + version;
if (versionKey != null && !"".equals(versionKey))
params = params + " -vk" + versionKey;
if (versionHash != null && !"".equals(versionHash))
params = params + " -vh" + versionHash;
%>
<HTML>
<HEAD>
aaa
<title>X3 协同管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script src="Scripts/AC_ActiveX.js" type="text/javascript"></script>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</HEAD>
</HTML>
然后使用地址端口后面加:/x3/Business1.jsp
访问一下看看不加载ocx打开速度快么? |