Link to home
Start Free TrialLog in
Avatar of labrynth82
labrynth82

asked on

Accessing local drive through JSP on Tomcat.

Hi All,

I'm trying to read and display the local directory (in a tree format) using ActiveXObject("Scripting.FileSystemObject") in Tomcat. It works fine if I run the JSP page straight from my harddisk, but when I put the page in Tomcat\webapps and run it using the localhost, an error occurs: "Automation server can't create object".

I need to find out if is it possible to configure the settings for Tomcat to be able to create an active x object:

var fso = new ActiveXObject("Scripting.FileSystemObject");

because the error points to this line. My browser (IE) settings for ActiveX is enabled, therefore I don't think that is a problem neither is the anti-virus preventing the script from running.

My main concern is whether "Scripting.FileSystemObject" can be used in Tomcat (since i need to pass some values to another JSP page) and if not, are there any other solutions/suggestions (but of course, revolving around JSP & Tomcat)?

Thanks in advance!
Lab (sorry I don't have that many points to give) :)
Avatar of Oliver_Dornauf
Oliver_Dornauf
Flag of Afghanistan image

TOMCAT CAN NOT CREATE AN ACTIVE-X OBJECT. TOMCAT DOES NOT KNOW ANYTHING ABOUT THE LOCAL DRIVE OF AN USER.

It seems you have an JavaScript/html Problem, isn´t it?
ASKER CERTIFIED SOLUTION
Avatar of CodingExperts
CodingExperts

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of labrynth82
labrynth82

ASKER

Hi CodingExperts,

Thank a lot for the links!! The second one helped me a lot. In fact now my tree is working perfectly in tomcat! *jumps with joy*

Lab :)