
Chapter 7 Deploying Web Applications in Apache Tomcat
Generating Servlets, JSPs and the Ant Build Script
To generate servlets, JSPs and the Ant build script:
- Select Language→Generate Java Code.
- Select the main directory where you want to generate the code.
- Verify that Apache Tomcat 4 is selected in the Targets page.
- Select the packages, classes and interfaces you want to generate in the Selection page.
- In the Options page, you can enter the default host name, port number, user name and password for login into Tomcat:
You can also overwrite these default options using the –D option in the Ant command line.
- In the Tasks page, you don't need to select any option if you plan to use Ant to build and deploy the Web application. If you want to deploy the Web application directly from PowerDesigner, you need to start Apache Tomcat server first, then you can select:
- Tomcat: Install web applications in Apache Tomcat using Ant, or
- Tomcat: Deploy web applications in Apache Tomcat using Ant
- Click OK to generate the servlet, JSPs and Ant build script.
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|