my dog learned polymorphism
The moose likes Tomcat and the fly likes apache tomcat 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "apache tomcat 4" Watch "apache tomcat 4" New topic
Author

apache tomcat 4

guptabandhu roy
Greenhorn

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 ...how do i change it to a folder of by own ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35443
    
    9
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.


Android appsImageJ pluginsJava web charts
Ben Souther
Sheriff

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: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: apache tomcat 4
 
Similar Threads
Good Security Framework?
deployment directory
Absolute path for jsp
url rewriting with struts
This weeks giveaway