tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arieh Markel <>
Subject Re: Clarification on Catalina TODO item: CGI emulation servlet
Date Tue, 20 Feb 2001 18:15:30 GMT

> Mailing-List: contact; run by ezmlm
> list-help: <>
> list-unsubscribe: <>
> list-post: <>
> Delivered-To: mailing list
> From: Martin T Dengler <>
> User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 0.7) Gecko/20010109
> To:
> Subject: Re: Clarification on Catalina TODO item: CGI emulation servlet
> X-Spam-Rating: 1.6.2 0/1000/N
> Craig R. McClanahan wrote:
> > That was exactly the original thinking -- create a servlet that would be 
> > to execute external applications in conformance with the CGI spec 
> > (principally related to environment variables, and connecting standard input
> > and output of the application program to the request and response streams
> > appropriately.
> Excellent.  I suppose the right thing to do now is propose a design to 
> this list with specification references for review.  If that is too 
> heavyweight I can just run the code by somebody (you, Craig?) after 
> testing on my own Catalina build.
> > Having this functionality implemented as a servlet means that you can map it 
> > a directory path ("/cgi-bin/*") and/or a filename extension ("*.cgi"), in 
> > same way that you would do so in a web server.  Or, in a security conscious
> > environment, you could just remove the mappings to make CGI service
> > unavailable.
> Exactly, and I suppose the directory path w/could obviously be web 
> app-specific, giving the normal encapsulation benefits.
> Would there be any scope for extra web-app-related information being 
> available in the spawned-process' environment, so it (the CGI) could 
> figure out the context path, etc.?

I am wondering if this will result on creating cgi-emulation
servlets that result in being platform-specific (initially, because of
the need of adapting differently to the manner in which the host's
environment variables need to be set, establishment of PATH,
probably there is more), or operate in a platform-specific manner.

(I am not aware of a Java API that allows to modify the external - host -


> > That would be great!  I will sign you up for that item.
> Thanks, I look forward to helping out; if I do something wrong please 
> let me know.
> > 
> > Craig McClanahan
> > 
> Chrs,
> Martin
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, email:

 Arieh Markel		                Sun Microsystems Inc.
 Network Storage                        500 Eldorado Blvd. MS UBRM11-194
 e-mail: arieh.markel@sun.COM           Broomfield, CO 80021
 Let's go Panthers !!!!                 Phone: (303) 272-8547 x78547
 (e-mail me with subject SEND PUBLIC KEY to get public key)

View raw message