// This appears in Core Web Programming from // Prentice Hall Publishers, and may be freely used // or adapted. 1997 Marty Hall, hall@apl.jhu.edu. public class IsIndex extends CgiCommandLine { public static void main(String[] args) { IsIndex app = new IsIndex("IsIndex", args, "GET (on the command line)"); app.printFile(); } public IsIndex(String name, String[] args, String type) { super(name, args, type); } protected void printBody(String[] args) { if (args.length > 0) super.printBody(args); else System.out.println ("Input is collected via the\n" + "ISINDEX element. Enter some data\n" + "and then hit RETURN.\n" + ""); } }