Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress Servlet Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

3.1 Introduction

The servlet interface is designed to make creating Web applications an easy and intuitive process. This chapter explains the process of creating a servlet and presents the code for a simple servlet.

The HydraExpress servlet container instantiates the servlet when it starts, then calls the init() method on the servlet. Each time a client request arrives, the servlet container calls a handler method on the servlet. Before the container shuts down, it calls the destroy() method on the servlet. This chapter covers the steps required to define, implement, compile, and deploy a complete servlet. Although the servlet described is simple, the example presents all the basic tasks necessary to write a servlet.

The servlet described in this section is included in the files HelloWorldExample.h and HelloWorldExample.cpp in the tutorials\servlet directory of the HydraExpress installation. The servlet itself is available at http://localhost:8090/examples/HelloWorldExample on a system running HydraExpress.

Creating and deploying a servlet involves the following steps:



Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.