Home
Completing the Web Diagram
This is how we complete the Web Diagram:
Open the Web Diagram and rearrange the tree existing components to the layout of Figure | 5-3.
Add three actions: logoff, accountDetails, and performTransaction.
Add three Web pages (JSPs): accountDetails.jsp, transact.jsp, and error.jsp.
Create two action forms:
In the accountDetails action, create the customerAccountForm with two attributes (String ssn and String accountId).
In the performTransaction action, create the transactForm with two attributes (String accountId and String amount).
Create connections according to Table | 5-2. Table 15-2
From To Type of connection /logoff logon.jsp Static Forward customerListing.jsp /logoff Struts Link /accountDetails Struts Link transact.jsp Struts Link /accountDetails accountDetails.jsp Local Forward success error.jsp Local Forward failure accountDetails.jsp /logon Struts Link /logoff Struts Link transact.jsp Struts Link transact.jsp /performTransaction Struts Form /performTransaction /accountDetails (action) Local Forward success error.jsp Local Forward failure error.jsp /logoff Struts Link /logon logon.jsp Local Forward cancel Web Diagram connections
ibm.com/redbooks