Java Reference
In-Depth Information
12. Enter lines 704 through 715 as shown in Figure 12-50 on page 831.
TextPad displays the code for a utility method that obtains a User object
from the database (Figure 12-63).
getUser()
method
user object returned
FIGURE 12-63
13. Enter lines 716 through 747 as shown in Figure 12-51 on page 832.
Save and compile the new servlet class.
TextPad displays the code for a utility method that obtains data for a single
user from the database and places it into an ArrayList (Figure 12-64).
getUserData()
method
user data added
to ArrayList object
ArrayList object returned
FIGURE 12-64
The controller servlet is complete; however, the user interface is not.
The main Web page, which is a JavaServer Page, must be created before the
application can be tested.
 
Search WWH ::




Custom Search