FileDocCategorySizeDatePackage
Multihome.javaAPI DocExample412Thu Apr 03 15:19:14 BST 1997None

Multihome.java

import java.applet.*;
import java.net.*;


public class Multihome extends Applet {

  public void init() {
  
    AppletContext ac = getAppletContext();
    URL oldURL = getDocumentBase();
    try {
      URL newURL = new URL(oldURL.getProtocol() + "://" + oldURL.getHost() + "/" + oldURL.getHost() + oldURL.getFile());
      ac.showDocument(newURL);
    }
    catch (MalformedURLException e) {
    }
    
  }
}