jsp调用ocx

时间:2014-05-09 10:30:27   收藏:0   阅读:452
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>


来自为知笔记(Wiz)


jsp调用ocx,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!