Servlet and JSP Programming with IBM WebSphere Studio and VisualAge for Java [Wahli, Fielding, Mackown, Shaddon & Hekkenberg 2000-05-01].pdf

(6714 KB) Pobierz
Servlet and JSP
Programming
with IBM WebSphere Studio and VisualAge for Java
Teach yourself servlet and JSP
programming techniques
Develop and test with WebSphere
Studio and VisualAge for Java
Deploy to WebSphere
Application Server
Ueli Wahli
Mitch Fielding
Gareth Mackown
Deborah Shaddon
Gert Hekkenberg
ibm.com/redbooks
SG24-5755-00
International Technical Support Organization
Servlet and JSP Programming
with IBM WebSphere Studio
and VisualAge for Java
May 2000
Take Note!
Before using this information and the product it supports, be sure to read the general information in
Appendix D, “Special notices” on page 429.
First Edition (May 2000)
This edition applies to Version 3.02 of WebSphere Application Server, WebSphere Studio, and
VisualAge for Java for use with the Windows NT Operating System. Many of the concepts also apply to
these products running on AIX, UNIX, and OS/2 Operating Systems.
Comments may be addressed to:
IBM Corporation, International Technical Support Organization
Dept. OWR Building 80-E2
650 Harry Road
San Jose, California 95120-6099
When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the
information in any way it believes appropriate without incurring any obligation to you.
© Copyright International Business Machines Corporation 2000. All rights reserved.
Note to U.S Government Users – Documentation related to restricted rights – Use, duplication or disclosure is
subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp.
Contents
Figures
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Tables
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Preface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
Sample code on the Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
The team that wrote this redbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxiv
Comments welcome . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxvi
Part 1. Web application development
. . . . . . . . . . . . . . . . . . . . . . . . . . .1
Chapter 1. Environment overview.
. . . . . . . . . . . .
WebSphere execution environment . . . . . . . . . . . . . . . . .
VisualAge for Java development environment . . . . . . . .
WebSphere Studio development environment . . . . . . . .
VisualAge for Java and WebSphere Studio interactions
Complete product environment . . . . . . . . . . . . . . . . . . . .
.......
.......
.......
.......
.......
.......
......
......
......
......
......
......
...
...
...
...
...
...
3
4
5
6
7
8
Chapter 2. Product overview.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
How the products work together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
IBM HTTP Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
WebSphere Application Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
WebSphere Studio. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
VisualAge for Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Distributed Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
DB2 Universal Database (UDB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
SecureWay Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Chapter 3. Product installation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Starting environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Creating a dedicated user ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Java Development Kit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
IBM HTTP Server. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Installing the product. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Testing the install. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
DB2 Universal Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Installing the product. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Testing the installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
VisualAge for Java . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
© Copyright IBM Corp. 2000
iii
Zgłoś jeśli naruszono regulamin