This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
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
Joined: Jan 24, 2004
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
Joined: May 15, 2001
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com