Hello, I'm a student who is develloping an JApplet for the Belgian railway company. I created an JApplet to unsubscribe, by typing an e-mail address in a box, the JApplet looks for it in an txt file. It all works properly when I compile but it doesn't work at all when I open it in an html browser. The browser opens the JApplet but does not load the txt file in a list that I use as some kind of help. Can anyone help me.
the propblem you have is that Applets dont have permissions to open or write files until they are signed. i have some adresses you could use. regards, trung
there is an example given on one of the links but it only works with jdk 1.2 and here's 1.3 installed, but I know now what the major problem is: the txt file should be opened from a server,not from a local pc, it's a file that's updated every time a someone subscribes
You got it! Applet has these two methods getDocumentBase() and getCodeBase() which provide a way to access a resource on the server that hosts the applet. The txt file can be read with the help of these.