|
|
xi | |
|
|
xvii | |
Preface |
|
xix | |
The team that wrote this redbook |
|
xix | |
Comments welcome |
|
xx | |
|
Introduction to the environment |
|
|
1 | (40) |
|
VisualAge for Java product family |
|
|
1 | (4) |
|
VisualAge for Java Professional Edition |
|
|
2 | (2) |
|
VisualAge for Java Entry Professional Edition |
|
|
4 | (1) |
|
VisualAge for Java Enterprise Edition |
|
|
4 | (1) |
|
VisualAge for Java Entry Enterprise Edition |
|
|
5 | (1) |
|
Updates to VisualAge Java |
|
|
5 | (1) |
|
Building your first applet |
|
|
5 | (12) |
|
|
7 | (1) |
|
|
8 | (4) |
|
|
12 | (2) |
|
|
14 | (1) |
|
Creating an animated applet |
|
|
15 | (1) |
|
Changing the properties of the applet |
|
|
16 | (1) |
|
Building your first application |
|
|
17 | (5) |
|
Running a program as an applet and application |
|
|
20 | (1) |
|
The VisualAge for Java Source View window |
|
|
21 | (1) |
|
The VisualAge for Java Scrapbook |
|
|
22 | (6) |
|
|
22 | (3) |
|
|
25 | (1) |
|
Correcting errors in the Scrapbook |
|
|
25 | (2) |
|
If your Scrapbook page remains busy |
|
|
27 | (1) |
|
Customizing VisualAge for Java |
|
|
28 | (3) |
|
|
28 | (3) |
|
Building your first servlet |
|
|
31 | (10) |
|
|
41 | (24) |
|
Projects in VisualAge for Java |
|
|
41 | (1) |
|
|
42 | (1) |
|
Packages in VisualAge for Java |
|
|
42 | (1) |
|
|
43 | (5) |
|
The Workbench Projects page |
|
|
44 | (2) |
|
The Workbench Packages view |
|
|
46 | (2) |
|
Using types from other packages |
|
|
48 | (7) |
|
The Workbench Resources page |
|
|
50 | (1) |
|
The Workbench Classes page |
|
|
50 | (2) |
|
The Workbench Interfaces page |
|
|
52 | (1) |
|
The Workbench All Problems page |
|
|
52 | (3) |
|
|
55 | (1) |
|
|
56 | (1) |
|
Importing and exporting with VisualAge for Java |
|
|
57 | (8) |
|
Importing in to VisualAge for Java |
|
|
58 | (2) |
|
Exporting from VisualAge for Java |
|
|
60 | (5) |
|
|
65 | (8) |
|
The Fix/Migrate SmartGuide |
|
|
65 | (3) |
|
|
68 | (2) |
|
Migrating your servlet and JSPs |
|
|
70 | (3) |
|
Beginning the ATM project |
|
|
73 | (36) |
|
|
73 | (2) |
|
|
75 | (16) |
|
|
76 | (2) |
|
|
78 | (4) |
|
|
82 | (2) |
|
|
84 | (5) |
|
|
89 | (2) |
|
|
91 | (4) |
|
|
91 | (1) |
|
|
92 | (1) |
|
|
93 | (1) |
|
|
94 | (1) |
|
|
95 | (14) |
|
Detailed steps implementing the first class |
|
|
96 | (5) |
|
Reusing existing method to create a new method |
|
|
101 | (1) |
|
PrimaryKey class hierarchy |
|
|
102 | (1) |
|
|
103 | (2) |
|
Persistency based on HashMaps |
|
|
105 | (1) |
|
|
105 | (1) |
|
Implementations of the state diagram |
|
|
106 | (1) |
|
|
107 | (2) |
|
|
109 | (20) |
|
Overview of Java servlets |
|
|
109 | (4) |
|
|
113 | (3) |
|
Building the ATM application servlets |
|
|
116 | (13) |
|
|
129 | (14) |
|
|
129 | (1) |
|
How Java Server Pages work |
|
|
130 | (1) |
|
|
131 | (1) |
|
|
132 | (1) |
|
Calling a servlet from a JSP |
|
|
132 | (1) |
|
|
133 | (1) |
|
|
134 | (4) |
|
Model-View-Controller (MVC) |
|
|
134 | (1) |
|
|
135 | (3) |
|
Building the ATM application |
|
|
138 | (5) |
|
|
140 | (3) |
|
Creating GUI applications |
|
|
143 | (40) |
|
Abstract Windowing Toolkit and Java Foundation Classes refresher |
|
|
143 | (1) |
|
Visual Composition Editor |
|
|
144 | (6) |
|
|
146 | (1) |
|
Modification of the Beans Palette |
|
|
147 | (2) |
|
Visual Composition Editor toolbar |
|
|
149 | (1) |
|
|
149 | (1) |
|
Working with beans in the Visual Composition Editor |
|
|
150 | (6) |
|
|
150 | (1) |
|
|
151 | (3) |
|
|
154 | (1) |
|
|
155 | (1) |
|
|
155 | (1) |
|
Visual Programming in action |
|
|
156 | (27) |
|
|
157 | (2) |
|
Building the CardBean class |
|
|
159 | (5) |
|
Building the CardBeanHome class |
|
|
164 | (3) |
|
Building the BankAccountBean class |
|
|
167 | (2) |
|
Building the ATM application |
|
|
169 | (6) |
|
|
175 | (2) |
|
|
177 | (1) |
|
|
178 | (5) |
|
|
183 | (48) |
|
introduction to versioning |
|
|
183 | (2) |
|
|
184 | (1) |
|
Workspace versus repository |
|
|
185 | (6) |
|
The workspace is only a cache |
|
|
186 | (1) |
|
Backup or restore the workspace |
|
|
187 | (1) |
|
|
188 | (1) |
|
Multiple workspaces on one repository |
|
|
189 | (1) |
|
Backup or restore the repository |
|
|
189 | (1) |
|
Workspace versus repository continued |
|
|
190 | (1) |
|
|
191 | (10) |
|
|
191 | (2) |
|
Consequences of versioning |
|
|
193 | (1) |
|
How to version elements with VisualAge for Java |
|
|
194 | (3) |
|
Apply this to the ATM application |
|
|
197 | (1) |
|
|
197 | (1) |
|
Importance of versioning your code regularly |
|
|
198 | (1) |
|
|
199 | (1) |
|
Versioning resource files |
|
|
199 | (2) |
|
|
201 | (16) |
|
|
201 | (2) |
|
|
203 | (2) |
|
Merging compared elements |
|
|
205 | (4) |
|
|
209 | (1) |
|
|
210 | (1) |
|
|
211 | (2) |
|
Replacing current edition |
|
|
213 | (3) |
|
External versioning systems |
|
|
216 | (1) |
|
Import and export effects |
|
|
217 | (5) |
|
Import and export with Java files |
|
|
218 | (1) |
|
Import and export with repository files |
|
|
218 | (4) |
|
|
222 | (9) |
|
Purging and restoring elements |
|
|
225 | (1) |
|
|
226 | (2) |
|
|
228 | (1) |
|
|
228 | (3) |
|
Testing and debugging the Web application |
|
|
231 | (44) |
|
|
231 | (18) |
|
|
231 | (1) |
|
|
231 | (5) |
|
|
236 | (5) |
|
|
241 | (2) |
|
|
243 | (2) |
|
|
245 | (1) |
|
Performance and the Class Trace option |
|
|
245 | (1) |
|
|
245 | (1) |
|
|
246 | (3) |
|
WebSphere Test Environment (WTE) |
|
|
249 | (5) |
|
Start the WebSphere Test Environment |
|
|
250 | (4) |
|
Testing JSPs under WebSphere Test Environment |
|
|
254 | (3) |
|
VisualAge for Java configuration for JSPs |
|
|
254 | (1) |
|
|
255 | (2) |
|
Debugging servlets and JSPs |
|
|
257 | (5) |
|
|
257 | (2) |
|
|
259 | (2) |
|
Debugging JSP generated source code |
|
|
261 | (1) |
|
Debugging JSP without importing |
|
|
262 | (1) |
|
|
262 | (3) |
|
WebSphere Test Environment --- advanced configuration |
|
|
265 | (5) |
|
|
265 | (1) |
|
|
265 | (1) |
|
The key configuration files |
|
|
266 | (4) |
|
WebSphere Test Environment --- multiple Web applications |
|
|
270 | (5) |
|
Configuring multiple Web applications |
|
|
271 | (2) |
|
Using the ServletEngineConfigDumper Servlet |
|
|
273 | (2) |
|
Using relational databases |
|
|
275 | (36) |
|
|
275 | (3) |
|
DataSource versus DriverManager |
|
|
278 | (1) |
|
|
278 | (1) |
|
|
279 | (1) |
|
|
279 | (1) |
|
Using SQLJ inside Visual Age for Java |
|
|
280 | (1) |
|
|
281 | (4) |
|
Making the ATM persistent |
|
|
285 | (2) |
|
|
285 | (1) |
|
|
286 | (1) |
|
Making the card class persistent |
|
|
287 | (1) |
|
Creating the Select beans |
|
|
288 | (12) |
|
|
288 | (11) |
|
|
299 | (1) |
|
|
299 | (1) |
|
|
300 | (9) |
|
|
301 | (2) |
|
|
303 | (1) |
|
|
304 | (2) |
|
Card Visual Composition Editor View |
|
|
306 | (1) |
|
Modifying related methods |
|
|
306 | (3) |
|
Data Access Beans with an application |
|
|
309 | (2) |
|
|
311 | (30) |
|
Java Internationalization Framework |
|
|
311 | (5) |
|
|
311 | (3) |
|
|
314 | (2) |
|
Internationalization in VisualAge for Java |
|
|
316 | (4) |
|
Building a language panel |
|
|
320 | (3) |
|
|
320 | (1) |
|
Creating the resource bundles |
|
|
321 | (2) |
|
Dynamically changing the locale |
|
|
323 | (8) |
|
|
323 | (1) |
|
Retrieving resources from resource bundles |
|
|
324 | (1) |
|
Finishing the LanguagePanel |
|
|
324 | (4) |
|
Formatting dates and times |
|
|
328 | (3) |
|
Other internationalization considerations |
|
|
331 | (5) |
|
|
331 | (5) |
|
Internationalization in the Web environment |
|
|
336 | (1) |
|
Character codes on the Web |
|
|
337 | (4) |
|
Deploying the Web application |
|
|
341 | (16) |
|
|
341 | (1) |
|
Using WebSphere Application Server |
|
|
342 | (7) |
|
Deploying a Web applications |
|
|
343 | (5) |
|
Planning for multiple Web applications |
|
|
348 | (1) |
|
|
349 | (1) |
|
|
349 | (3) |
|
|
350 | (2) |
|
|
352 | (5) |
|
|
352 | (1) |
|
|
352 | (1) |
|
|
353 | (2) |
|
Deploying the ATMApplication applet |
|
|
355 | (1) |
|
Deploying supporting code |
|
|
355 | (2) |
Appendix A. JSP tag syntax |
|
357 | (6) |
|
|
357 | (6) |
|
|
359 | (4) |
Appendix B. Using the additional material |
|
363 | (4) |
|
Locating the additional material on the Internet |
|
|
363 | (1) |
|
|
363 | (1) |
|
System requirements for downloading the Web material |
|
|
363 | (1) |
|
How to use the Web material |
|
|
364 | (3) |
Appendix C. Special notices |
|
367 | (4) |
Appendix D. Related publications |
|
371 | (2) |
|
|
371 | (1) |
|
|
371 | (1) |
|
|
372 | (1) |
|
|
372 | (1) |
How to get IBM Redbooks |
|
373 | (2) |
|
IBM Redbooks fax order form |
|
|
374 | (1) |
Glossary |
|
375 | (8) |
Abbreviations and acronyms |
|
383 | (2) |
Index |
|
385 | (6) |
IBM Rebooks review |
|
391 | |