aspose file tools*
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
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: 39548
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
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
 
Don't get me started about those stupid light bulbs.
 
subject: apache tomcat 4
 
Similar Threads
Absolute path for jsp
url rewriting with struts
Good Security Framework?
deployment directory
This weeks giveaway