1、配置tomcat 和jdk环境,编写简单的jsp,调用ocx控件
2、ocx的控件需要注册
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>test</title>
<META http-equiv="Content-Type" content="text/html;
charset=utf-8">
<script type="text/javascript" language="javascript">
function show(){
控件名.OpenDevice();
}
</script>
</head>
<object id="控件名" width="" height=""
classid="clsid:6A1257A8-8426-4A51-86F9-8DA9D879FF2A"
CODEBASE="<%=request.getContextPath()%>\控件名.ocx#version=1.0">
</object>
<body>
<button type="button" onclick="show()">open</button>
</body>
</html>
jsp调用ocx,古老的榕树,5-wow.com