Chapter 5 Deploying Web Applications in Apache Tomcat


Creating a Web Application

The following procedures describe how to create the various elements of a web application with PowerDesigner.

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), and click Next.
  5. [optional] Select an existing class as the Servlet class.
  6. [optional] Create a component diagram and a component symbol.

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

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

Steps To create a JSP:

  1. Create an Object-Oriented Model (OOM) with the Java language.
  2. Select Tools→Create JSP wizard.
  3. Enter the name of the JSP, and click Next.
  4. Select a JSP template, and click Next.
  5. [optional] Create a component diagram and a component symbol.

Alternatively, if you already have a file and want to transform it into a JSP, you can select it and then click Tools→Create JSP.

To define the JSP contents, you can double-click the file object associated with the JSP component or open the file property sheet and click on the Content tab.

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

Steps To create a Web Service component:

  1. Create an Object-Oriented Model (OOM) with the Java language.
  2. Select Tools→Create Web Service Component wizard.
  3. Enter the name of the Web Service, and click Next.
  4. Select the Web Service type (implementation) and the Implementation type (Standard or Servlet). The Standard implementation type uses the JAX-RPC model. The servlet implementation model uses the JAXM model.
  5. [optional] Create a component diagram and a component symbol.

If you already have a class and you want to transform the class into a Web Service, you can right-click on the class and select Create Web Service Component.

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

 


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