想请教个问题:我采用jsp调用高影仪进行拍摄,有个奇怪的现行,我用IE浏览器打开编写好的jsp页面,可以正常调用高影仪进行拍摄;但是我将同样的jsp页面放在tomcat容器中运行,调不起来了。通过eclipse进行调试,提示每个函数,麻烦各位大神帮我看看,具体的代码如下:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Insert title here
classid="clsid:556DBC8A-FE4A-4DA7-A82E-3926C8D4AC41" >
不优化文档优化彩页优化不裁切单图裁切多图裁切手动裁切
var strFile;
var Width = 0;
var Height = 0;
var mainIndex = 0;
var index = 0;
var strFile = "D:\\test.jpg"
function StartVideo()
{
var aa = CamSDKOCX.InitCameraLib();
alert(aa);
CamSDKOCX.OpenDev(0,0,3264,2448);
}
function SetEffect()
{
var obj=document.getElementById("adjust") ;
var index=obj.selectedIndex;
CamSDKOCX.SetAdjust(index);
}
function SetState()
{ var obj=document.getElementById("autocrop") ;
var index=obj.selectedIndex;
CamSDKOCX.SetAutoCrop(index);
}
function SetCusState(obj)
{
var statcuscrop = obj.checked;
CamSDKOCX.SetCusCrop(statcuscrop);
}
function Capture()
{
CamSDKOCX.CaptureImage(strFile);
nFileCount ++;
}
setTimeout("StartVideo()",100);
SetState.checked = true;