You are here: irt.org | FAQ | Java | Q4023 [ previous next ]
By using the method showDocument(URL) see the example below:
URL url = getCodeBase(); // get url of the applet try { getAppletContext().showDocument (new URL(url+"blah.html")); } catch(MalformedURLException e) { showStatus("URL not found"); }
this code will load the file blah.html from the same directory where the applet is situated on the server and if the file is not found display error message on the status bar.