Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet class file installation

 
Gautam Sathe
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have downloaded Servlets class file (servlet-2_3-pfd2-class.zip) and docs (servlet-2_3-pfd2-docs.zip) from (http://java.sun.com/).
I already have JDK 1.3 installed in my system. How can I associate the above files with JDK 1.3 so that I can compile and run servlet programs.
Is there any thing else I need to download to run servlet.
Thanks in advance.
Gautam.
------------------
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since servlets are a "Standard extension" the compiler will find servlets.jar in the
JAVA_HOME\jre\lib\ext
directory.
You will also need a servlet engine - servlets have to run in the context of a web server. Sun's preferred servlet engine is Tomcat. Download from: http://jakarta.apache.org/
Assuming you want to work with the 2.3 servlet API (currently the absolute latest) you will have to download Tomcat 4 - although still in beta it seems to work fine.
Important: Download the servlet 2.3 API specifications from java.sun.com and study how web applications are defined and how to use web.xml to control servlets.
Bill

------------------
author of:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic