Solved

Accessing local drive through JSP on Tomcat.

Posted on 2004-09-01
3
888 Views
Last Modified: 2012-06-27
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) :)
0
Comment
Question by:labrynth82
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Expert Comment

by:Oliver_Dornauf
ID: 11960891
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?
0
 
LVL 6

Accepted Solution

by:
CodingExperts earned 125 total points
ID: 11961104
May be use the link below
http://www.jenkov.dk/projects/treetag/treetag.jsp
and you may have a look into the tutorial on how to do it
http://javaboutique.internet.com/tutorials/Files_Directories/mydir.html

Good Luck
CodingExperts
0
 

Author Comment

by:labrynth82
ID: 11970958
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 :)
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is a lot to be said for protecting yourself and your accounts with 2 factor authentication.  I found to my own chagrin, that there is a big downside as well.
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question