190 IBM Workplace Forms: Guide to Building and Integrating a Sample Workplace Forms Application
5.5 Adjustments to JSPs for Stage 2
In this section we explain some adjustments to the JSPs for Stage 2.
5.5.1 Where we are in the process: Building Stage 2 of the base scenario
Figure 5-7 is intended to provide an overview of where we are within the key steps involved to
build Stage 2 of the base scenario. This focuses on adding storage capabilities to DB2,
incorporating Web services, modifying the JSPs, and adding an approval workflow.
Figure 5-7 Overview of major steps involved in building Stage 2 of base scenario application
5.5.2 Modifying the index.jsp
There are two additional buttons that you will need to add to the index.jsp in order to connect
to DB2:
1. All Orders (DB2): This button submits a request to the
db2listing.jsp, which returns all the
orders in the DB2 database.
2. My Orders (DB2): This button submits a request to the
db2listing.jsp, which returns only
the orders of the user making the request in the DB2 database.
-Creating tables
-Populating
tables
-Form pre-
population
-Extraction of
form data
-Reading form
data from DB2
DB2 / Data
Storage
1
2
3
Servlet
Access to
Forms
Building the Base Scenario – Stage 2
Web
Services
-Common
scenario for
web services
in forms
-Web Service
Development
-Web Service
Runtime
-Modifying
index1.jsp
-Creating
JSP to view
DB2 data
4
Adjustments
to JSPs
-Importing
WSDL file
-Calling Web
Services
5
Form pre-
population w/
Web
Services
6
Approval
Workflow
-Designing
-Workflow