jsp调用ocx

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,布布扣,bubuko.com

jsp调用ocx

上一篇:SQL Server 2008 R2链接MySQL 5.6


下一篇:我的MYSQL学习心得(十三)