
Chapter 5. Building the base scenario: Stage 2 185
5.4.4 Extraction of form data and storage of entire form
Extracting data from a form will be done as in the Stage 1 doPost method. In Stage 2, we will:
Extract much more data (state changes and order detail data).
Complete the extracted data with additional history data (time stamps for approvals and
approver IDs).
Store the data to DB2.
Store the entire form to DB2.
The main methods for data extraction stay the same as in Stage 1. See the code in the
extended scenario for doPost (Example 5-23).
Example 5-23 extended scenario for doPost
public void doPost(HttpServletRequest request, HttpServletResponse ...