Examples of CGI


Examples of org.mortbay.servlet.CGI

    // Create Jetty server
    Server server = new Server(httpPort);
    Context context = new Context(server, "/");
   
    // Create a CGI servlet for scripts in webui/cgi-bin
    ServletHolder cgiHolder = new ServletHolder(new CGI());
    cgiHolder.setInitParameter("cgibinResourceBase", webDir + "/cgi-bin");
    if (System.getenv("PATH") != null) {
      // Pass any special PATH setting on to the execution environment
      cgiHolder.setInitParameter("Path", System.getenv("PATH"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.