Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: CGI servlet in tomcat

Tim Funk

2004-01-09


You place the scripts in your webapp. For example, you should have a ROOT
context in a default install under %CATALINA_HOME/webapps/ROOT. In there
create a cgi-bin directory.

If you have other webapps - you can create subdirectories int here to. If you
wish to forgo /cgi-bin/ you can map *.cgi to cgi by editing web.xml in any
webapp or $CATALINA_HOME/conf/server.xml



-Tim


annimandary@(protected):

> In the web.xml, I've uncommented the servlets ssi and cgi. I've also
> -uncommented the servlets-mapping for these 2 servlets.
>
> I've renamed the "servlets-cgi.renametojar" and "servlets-ssi.renametojar"
> files.
>
> Where do I place the folder cgi-bin? Are there any other changes to be made
> to use the CGI servlet?



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.