Hi,
I am trying to call a ActiveX object from
JSP using the ActiveXObject method in javascript. I have a dll filed named Patchgenerator.dll which is registered and assigned a prog id "Patchgenerator.PatchGen.1" which is being passed as an argument to the ActiveXObject method. Below is the code i am trying to execute..
<html>
<head>
<title>Script Example</title>
</head>
<body>
<br><br>
<P align="center">
<form action="" method="post">
<script language="JavaScript">
var SSOObj = new ActiveXObject("Patchgenerator.PatchGen.1");
var Token = SSOObj.Getmethod("","","");
var Token = SSOObj.Setmethod("","","","");
</script>
</form>
</body>
</html>
When i write the above code and save it as an html file it works fine..the activex object is created and the methods are called , but when i copy the same code to a file and save it as jsp file under webapps folder under
tomcat it doesnt work and reports a javascript error with the error being:
Automation server cant create the object at line :
var SSOObj = new ActiveXObject("Patchgenerator.PatchGen.1");
Please suggest how can I solve the problem. Your help would be sincerely appreciated.
Thanks
Gautam