Java Reference
In-Depth Information
provides
contains
List
of
FolderDao
Folder
Message
FolderTypeConverter
MessageTypeConverter
Id
"1"
Id
"1"
Figure 8.1: Folders and messages
• The
FolderDao
interface defines methods to manage folders and the
messages they contain.
MockFolderDao
is an implementation that
contains a few fictitious messages so that we see something when
trying the example.
•
FolderTypeConverter
converts a
String
ID to a
Folder
, while
Message-
TypeConverter
does the same for a
Message
. With these type con-
verters, we can use ID parameters in forms and the
Folder
and
Message
property types in action beans. We discussed this tech-
Let's get to using form input controls, starting with checkboxes.
8.1
Checkboxes
the user to select a folder on the left and view the messages that are in
that folder. The list of messages includes links to view the details of a
message. There's also a column of checkboxes on the left, allowing the
user to select messages. With the controls at the bottom, the user can
delete the selected messages or move them to a different folder.
The
MessageListActionBean
class is the action bean associated to this
page, with a default event handler that forwards to
message_list.jsp
. This
JSP renders the page.
Search WWH ::
Custom Search