FileDocCategorySizeDatePackage
Redirector.javaAPI DocExample393Sat Sep 09 20:33:20 BST 2000None

Redirector

public class Redirector extends Applet

Fields Summary
Constructors Summary
Methods Summary
public voidinit()

  
    AppletContext ac = getAppletContext();
    URL oldURL = this.getDocumentBase();
    try {
      URL newURL = new URL(this.getParameter("newhost") + oldURL.getFile());
      ac.showDocument(newURL);
    }
    catch (MalformedURLException e) {
    }