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.F ileSystemO bject") 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.F ileSystemO bject");
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.FileSystemObjec t" 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) :)
I'm trying to read and display the local directory (in a tree format) using ActiveXObject("Scripting.F
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.F
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.FileSystemObjec
Thanks in advance!
Lab (sorry I don't have that many points to give) :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 :)
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 :)
It seems you have an JavaScript/html Problem, isn´t it?