The JavaTM Tutorial
Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail Search

Trail: Servlets

Lesson: The servletrunner Utility

Once you have written your servlet, you can test it with the utility included in the JSDK. The JSDK 2.0 has a utility called servletrunner, while JSDK 2.1 comes with a small HTTP server. This section discusses setting up and running those utilities.
 

Setting Servlet Properties

You might have to specify certain pieces of data to run a servlet. For example, if a servlet requires initialization parameters, you must set up this data before starting the JSDK process that runs your servlet.


 

Starting the Server (JSDK 2.1)

After the property file is set up, you can run servlets in the server included with the JSDK2.1. This section explains how.


 

Starting servletrunner (JSDK 2.0)

After the property file is set up, you can run servlets in the servletrunner utility. This section explains how.


Previous Page Lesson Contents Next Page Start of Tutorial > Start of Trail Search