how to read file with a java applet.
Posted on 2003-03-04
okay. here's my question:
I've got this applet. it's supposed to read in a text file on the server (the same server on which it resides, in the same folder and all) and draw a chart from the information it gets from the file.
I don't want to read files on the client's machine or whatever. I just want to read files on the server.
the applet works fine in the applet viewer, but on the web it doesn't.
I've read about security policies and permissions. and I've also checked with the servlets... but I want to know if there's another way of reading files... without servlets or security permissions or signing the applet.
they all seem to be for applets that either have to read/write on the client's machine or for applets that have to collect information from the client's machine.
I don't have to read/write on the client's machine.
the applet ONLY has to read in the file in order to draw the chart.
now, can someone tell me if it's possible to do this? and possibly... how to do this?
(I'm using Visual Age for Java 3.5 to code the applet and I have Java Sun's platform 1.4.1 as a runtime engine)