Package org.mortbay.servlet

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

Related Classes of org.mortbay.servlet.CGI

Copyright © 2018 www.massapicom. 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.