Chapter 5 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.
- Specify the directory where you want to generate the code.
- On the Targets tab, verify that Apache Tomcat 5 is selected.
- [optional] Click the Selection tab to select the packages, classes and interfaces you want to generate.
- [optional] Click the Options tab, and enter the default host name, port number, user name and password for login into Tomcat:
You can overwrite these default options using the –D option on the Ant command line.
- Click the Tasks tab to specify deployment tasks. 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 should start Apache Tomcat server , and then select the following tasks:
- 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) 2006. Sybase Inc. All rights reserved.
|
|