Java Reference
In-Depth Information
9. Enter lines 661 through 680 as shown in Figure 12-47 on page 830.
TextPad displays the code to validate the password for a user
(Figure 12-60). If the password automatically expires, the number
of remaining uses is updated in the database.
validUserPswd()
method
user database
record updated
FIGURE 12-60
10. Enter lines 681 through 691 as shown in Figure 12-48 on page 830.
TextPad displays the code to get the user stock holdings list as an ArrayList
(Figure 12-61). This is similar to the StockTracker application.
getStockList()
method
ArrayList returned
FIGURE 12-61
11. Enter lines 692 through 703 as shown in Figure 12-49 on page 831.
TextPad displays the code to get the list of users as an ArrayList
(Figure 12-62). This is similar to the StockTracker application, except that
the list is stored as a session attribute rather than displayed. The attribute
is used subsequently by a JavaServer Page to display the list.
listUsers()
method
ArrayList set
as attribute
FIGURE 12-62
(continued)
 
Search WWH ::




Custom Search