aspose file tools*
The moose likes Beginning Java and the fly likes tired.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "tired.." Watch "tired.." New topic
Author

tired..

Antoine Waugh
Ranch Hand

Joined: Jan 24, 2004
Posts: 66
heya,
ive been working on an applet that has a calendar interface. The applet calls an 'ExcelReader' class, which in turn calls a odbc excel file and loads the information into the required objects. My code has been tested and works fine from a tester class, but when i call the
ArrayList whatever = ExcelReader.loadFile();
command, i am getting whatever.size() returning '0'.
this implies that the ExcelReader.loadFile is not actually creating any objects, now my question is:
Is it possible that the applet -implicitly through calling the ExcelReader class is being denied access to my filesystem due to access restrictions? this is the only logical reason i can find from hours of testing..
thanks in advance,
twans
ALL replies are greatly appreciated, and time is an issue
thanks again


B.C.S.T, SCJP, Hero
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Applets run in a 'sandbox' and are restricted from accessing the local hard disk of the computer they are running on unless they are digitally signed and trusted. For more information
HTH
Nigel
Antoine Waugh
Ranch Hand

Joined: Jan 24, 2004
Posts: 66
thanks for your quick reply..
i actually had visited that site, and it claims
" Sun's appletviewer allows applets to read files that are named on the access control list for reading. The access control list for reading is null by default, in the JDK. You can allow applets to read directories or files by naming them in the acl.read property in your ~/.hotjava/properties file. "
now, this will be the setup. There is a server, and this contains the file to be read (odbc) and the applet. Then there is the user, who is you or me. I just want to view the web-server's applet which in turn views the file ON ITS OWN filesystem.. if i modify this /hotjava/properties file will that mean that all viewers of the applet will be able to view the contents of the file. If so, i cannot manage to find this directory, does anyone know if i have to create it etc.
thanks again
[SERVER] <========== [USER]
- Applet
- ODBC file
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
Appletviewer is a tool for testing applets without having to user a web browser. From the discription of the system you are developing the applet will be run in a browser on the clients computer. Applets are allowed to connect back to their originating host and this is described here in the java tutorial
HTH
Nigel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tired..