Java Reference
In-Depth Information
PROGRAM IMPLEMENTATION
Once the solution is designed and validated,
the next step in the development cycle is to implement the design, as shown in
Table 12-1 on page 780. In this project, only one new class is created; however, 10
existing classes from Chapter 11 are reused. Because the project requires no
changes to these classes, only the class files and not the Java source files are
needed. Table 12-2 lists the class files from Chapter 11 that are reused for this
application.
Table 12-2
Reused Class Files from Chapter 11
FILE NAME
Password.class
PasswordException.class
PasswordExpiredException.class
PasswordInternalException.class
PasswordInvalidException.class
PasswordInvalidFormatException.class
PasswordSizeException.class
PasswordUsedException.class
StockTrackerDB.class
User.class
Table 12-3 lists the HTML and JavaServer Page files used to provide views
of the data in the WebStocks Web application. As indicated in the table, many
of these files are provided on the Data Disk in the Chapter 12 folder.
Table 12-3
HTML and JSP Files for the WebStocks Web Application
FILE TYPE
FILE NAME
DESCRIPTION
SOURCE
JSP
mainForm.jsp
Main form displayed after successful log on
Created in chapter
chgPswd.jsp
Supplies new password data after password expires
Data Disk
delUser.jsp
Supplies verification to delete selected user
Data Disk
listUsers.jsp
Supplies list of current users
Data Disk
stockDesc.jsp
Supplies new stock description
Data Disk
updUser.jsp
Supplies updated user information
Data Disk
HTML
index.html
Initial static Web page
Created in chapter
addUser.html
Supplies new user information
Data Disk
badUserID.html
Displays error message for add or delete of invalid user ID
Data Disk
reqDelUser.html
Requests ID of user to delete
Data Disk
reqUpdUser.html
Requests ID of user to update
Data Disk
Search WWH ::
Custom Search