Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

automation server can't create object ActiveXObject jsp

835297May 17 2011 — edited May 17 2011
Hi

Below code snippet is completely working fine on IE when it is embedded in an HTML document.

var fso = new ActiveXObject("Scripting.FileSystemObject"); // creating a Scripting FileSystemObject.
var fh = fso.CreateTextFile("data.xml", true); // creating a file handler variable which is pointing to the given file.
fh.WriteLine(str); // Writing str value to file through file handler variable.
fh.Close(); // closing the file handler object.

But when I am embedding the same snippet in a JSP and trying execute on the same IE, it is failing at ""var fso = new ActiveXObject("Scripting.FileSystemObject");"" and throwing a javascript error as "automation server can't create object".

I have gone through google and could not identify what might gone wrong.

if some had come across the same scenario, pls throw some light on this.


Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 14 2011
Added on May 17 2011
1 comment
1,628 views