img
Figure 3-5. Posting a comment
As is the case with the entry posting functionality, this functionality also allows you to edit comments.
Filtering Out Obscenities
One of the features of the Spring Framework we really wanted to highlight in SpringBlog was AOP, but
we did not want to use the traditional example of logging, and AOP-based transaction management is
already built into the Spring Framework. Although most blogs do not use any kind of obscenity filter, we
decided that ours would. During design, it seemed that using AOP was the best way to apply this feature
across the application.
With this functionality in place, when you try to post an entry such as that shown in Figure 3-6, you
actually get a posting like the one in Figure 3-7. The ROT13 algorithm is used to perform filtering and will
be discussed in detail in Chapter 21.
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home