5
Netprog 2002  -  Servlets
Writing Servlets
•Install a web server capable of launching and managing servlet programs.
•Install the javax.servlet package to enable programmers to write servlets.
•Ensure CLASSPATH is changed to correctly reference the  javax.servlet package.
•Define a servlet by subclassing the HttpServlet class and adding any necessary code to the doGet() and/or doPost() and if necessary the init() functions.