It's not a secret anymore!
The moose likes Tomcat and the fly likes apache tomcat 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "apache tomcat 4" Watch "apache tomcat 4" New topic

apache tomcat 4

guptabandhu roy

Joined: Mar 22, 2008
Posts: 9
hi guys i am new to java ranch and just had a few questions :-
i am using tomcat for hosting my own web pages
1>i wanted to know how to deploy cgi programs using c (or any other language) in tomcat
2>the default base for tomcat is the ROOT directory do i change it to a folder of by own ?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Welcome to JavaRanch.

Tomcat can't run CGI code in languages other than Java (in which they're called servlets). You'll need to use Apache httpd for this.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Slight correction.
There is a CGI servlet that ships with Tomcat but it probably isn't your best bet for running CGI apps. If I needed to run both server side Java and CGI apps from the same domain, I'd look at other options, such as connecting Tomcat to the Apache Web Server.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: apache tomcat 4
It's not a secret anymore!