I've gone through some of the posts in javaranch, and I'm not yet clear on one particular thing. Do I need to install Tomcat to run servlet and jsp programs, or do i have to use apache with tomcat to run those servlets and jsp programs Thanx
You have lots of choices. You can run Tomcat on its own, you can run Apache httpd together with Tomcat. You can run one of the many other servlet servers (Resin, JWS etc.) on its own. You can run one of the many plug-in servlet containers with a web server such as Apache httpd, IIS, iPlanet etc. If you want to get started as simply as possible, I recommend using one of the pure Java servlet servers on its own. Tomcat is the reference standard, and is available for download from http://jakarta.apache.com/ , but Resin is my personal favourite, and seems to be easier to install and get running that Tomcat. Resin is available for download from http://www.caucho.com/ . [This message has been edited by Frank Carver (edited November 27, 2000).]
Hi Frank, what's the difference between running Tomcat on it's own, or Tomcat with Apache ? Is one of them a web server and the other not !!
Joined: Jan 07, 1999
Both Tomcat and Apache httpd can run as web servers, serving basic files etc. Apache httpd is also a "full-function" web server capable of running CGI scripts and acceping plug-ins for lots of different purposes (in-process perl and PHP interpreters, for example). Tomcat is also a Servlet container capable of managing and executing servlets. If you just need basic files (HTML, images etc.) and servlets then use Tomcat on its own. If you just need basic files and CGI, PHP etc. the use Apache httpd on its own. If you need a combination of CGI, perl, PHP etc. and servlets, or of you need the web server to communicate with or load-balance between multiple servlet containers each in its own JVM, then use a web server (such as Apache httpd, iPlanet, IIS etc.) together with one or more servlet containers (such as Tomcat, Resin, JRun etc.) For most people developing sites powered by servlets and JSPs with some static files, especially if you are new to servlets or to server configuration, then a web-servlet container such as Tomcat or Resin offers everything you need. It's also a lot simpler to get started.
Joined: Oct 08, 2000
I just posted my question a while ago! Thank ya sherrif
subject: software required to run JSP and Servlets