Chapter 7 Deploying Web Applications in Apache Tomcat


Creating servlets

Steps To create a servlet:

  1. Create an Object-Oriented Model (OOM) with the Java language.
  2. Select Tools→Create Servlet wizard.
  3. Enter the name of the servlet, click Next.
  4. Select the type of servlet (the superclass of the servlet), click Next.
  5. [optional] Select an existing class as the Servlet class.
  6. [optional] Create a component diagram and a component symbol.

If you already have a class and you want to transform the class into a servlet, you can right-click the class and select Create Servlet.

For more details about how to create servlet, see the OOM User's Guide.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.