也许只能把weblogic作为其他的插件用(看文档)不知道5.1有没有这个功能,我用6.1Installing and Configuring the Apache HTTP Server Plug-In 
Installing and Configuring the Microsoft Internet Information Server (ISAPI) Plug-In ........

解决方案 »

  1.   

    文档6.1的webapp\components.html里有Using CGI with WebLogic ServerWebLogic Server provides functionality to support your legacy Common Gateway Interface (CGI) scripts. For new projects, we suggest you use HTTP servlets or JavaServer Pages. WebLogic Server supports all CGI scripts via an internal WebLogic servlet called the CGIServlet. To use CGI, register the CGIServlet in the Web Application deployment descriptor (see Sample Web Application Deployment Descriptor Entries for Registering the CGIServlet). For more information, see Configuring Servlets.Configuring WebLogic Server to use CGITo configure CGI in WebLogic Server:
    Declare the CGIServlet in your Web Application by using the <servlet> and <servlet-mapping> elements. The class name for the CGIServlet is weblogic.servlet.CGIServlet. You do not need to package this class in your Web Application. Register the following initialization parameters for the CGIServlet by defining the following <init-param> elements: cgiDir
    The path to the directory containing your CGI scripts. You can specify multiple directories, separated by a ";" (Windows) or a ":" (Unix). If you do not specify cgiDir, the directory defaults to a directory named cgi-bin under the Web Application root. 
    extension mapping
    Maps a file extension to the interpreter or executable that runs the script. If the script does not require an executable, this initialization parameter may be omitted. 
    The <param-name> for extension mappings must begin with an asterisk followed by a dot, followed by the file extension, for example, *.pl.
    The <param-value> contains the path to the interpreter or executable that runs the script You can create multiple mappings by creating a separate <init-param> element for each mapping.
    Listing 3-3 Sample Web Application Deployment Descriptor Entries for Registering the CGIServlet<servlet>
     <servlet-name>CGIServlet</servlet-name>
     <servlet-class>weblogic.servlet.CGIServlet</servlet-class>
     <init-param>
      <param-name>cgiDir</param-name>
      <param-value>
       /bea/wlserver6.0/config/mydomain/applications/myWebApp/cgi-bin
      </param-value>
     </init-param>  <init-param>
       <param-name>*.pl</param-name>
       <param-value>/bin/perl.exe</param-value>
      </init-param>
    </servlet>...<servlet-mapping>
       <servlet-name>CGIServlet</servlet-name>
       <url-pattern>/cgi-bin/*</url-pattern>
    </servlet-mapping>Requesting a CGI ScriptThe URL used to request a perl script must follow the pattern: http://host:port/myWebApp/cgi-bin/myscript.plWhere 
    host:port
    Is the host name and port number of WebLogic Server.
    myWebApp
    is the name of your Web Application.
    cgi-bin
    is the url-pattern name mapped to the CGIServlet.
    myscript.pl
    is the name of the Perl script that is located in the directory specified by the cgiDir initialization parameter. 
      

  2.   

    I will try it,thanks a lot!!thanks a lot!!