img
Attaching Files to a Blog Entry or Comment
Unlike many blog applications used on the World Wide Web, SpringBlog allows files to be uploaded with
blog entries and comments. In reality, this feature poses quite a large security risk, but it does allow us to
demonstrate Spring Framework's excellent file upload handling. Figure 3-8 shows a file being uploaded
for an existing entry.
Figure 3-8. Uploading a file to SpringBlog
Auditing Blog Actions
One feature that we included purely to demonstrate a particular Spring feature is auditing. By
introducing the need for all blog operations to be logged for auditing purposes, we made each blog
operation require multiple database operations; this requires the use of a database transaction that,
obviously, we manage using Spring's transaction management features.
You can view the audit history of a blog posting, as shown in Figure 3-9, by clicking the View Audit
History link on the blog entry detail page. As discussed, only users with the administrator role can see
the link and view the audit history.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home