I'm sorry I wasted your time with this post. I found out the way to do the reading of the file on the server, the code was very simple, as I expected:
URL fileURL = null;
InputStream in;
try {
fileURL = new URL("http://IPAddress:8080/fileToRead");
} catch (MalformedURLException e) {...
First of all, thank you for your quick response, sedj!
I read about signed applets, but this seems to be a little too complicated for what I have to do.
I don't want to access the local file system on the computer on which the browser is running, all I need is to read a file from the directory...
I have the following problem: I cannot get an applet to read from a file, even though it is located in the same directory (the ROOT directory of the Tomcat installed by the J2SDK 1.4.2_04).
It has something to do with Tomcat permissions, because I get the following error...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.