Java Reference
In-Depth Information
«html»
register
«jsp»
add
«link»
«link»
«jsp»
login
«link»
«link»
«html»
index
setup
update
«link»
«link»
«link»
«jsp»
logout
«jsp»
message
«jsp»
main
«link»
«link»
«link»
«link»
Figure 16.8 User interface structure
Decision point
What is the structure of the database?
The database must store the user profiles, which contain the information
shown in Table 16.1. The database consists of a single table that stores the
profile information.
16.4.3
Implementation
Class Manager is the main entry point to access the profiles. Its constructor
receives a Connection to the database that contains the profiles. It provides
Table 16.1 UbiMail user profile
Field
Type
Description
Username
VARCHAR(15) PRIMARY KEY
The name used to identify the user at login
Pass
VARCHAR(20),
The password to authenticate the user
Firstname
VARCHAR(25),
The first name of the user
Lastname
VARCHAR(25),
The last name of the user
Popserver
VARCHAR(50),
The mail server name
Popuser
VARCHAR(20),
The user name used to access the mail server
Poppass
VARCHAR(20)
The password to access the mail server
 
Search WWH ::




Custom Search