JSP Controls Tag Library: Mini-Blogger Sample
Overview
The Mini-Blogger Sample is an example of how JSP componente can be used. It is shipped in the samples WAR file and allows to browse blog entries in the list, to select a specific entry, to add comments for an entry, to create new entry and to edit an existing entry:
There are three components of particular interest: Login Component, Comment Component and Admin Component. The Login Component is always visible, it allows to log in or log out from any page of the blogger. The Add Component is shown in the Single Entry mode, and allows to leave a comment for any guest of the site. The Admin Component is displayed only when an admin user logs in. The Admin Component allows to add a new entry, if current page is the List Page, and it allows to Edit current entry if the current page is Entry Page:
See the sample source code for details.