Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

software required to run JSP and Servlets

 
Jeffry Cray
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
manish suba
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u need a web server java web sserver or some other one
and jsdk1.2.2
to run servlets and jsp
also u need to set path
try this
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Jeffry Cray
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !!
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jeffry Cray
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just posted my question a while ago! Thank ya sherrif
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic