Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 9. Securing Spring > Securing view-level elements

9.3. Securing view-level elements

To support security in the view layer, Spring Security comes with a JSP tag library.[2] This tag library is small and includes only three tags, as listed in table 9.3.

[2] If you prefer Velocity over JSP for rendering views, Spring Security also comes with a set of Velocity macros that are similar to its JSP tags.

Table 9.3. Spring Security supports security in the view layer with a JSP tag library.
JSP tagWhat it does
<security:accesscontrollist>Allows the body of the tag to be rendered if the currently authenticated user has one of the stipulated permissions in the specified domain object
<security:authentication>Accesses properties of the current user’s authentication object
<security:authorize>Allows the body of the tag to be rendered if a specified security constraint has been met



  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial