Enlightensoft's Blog

Helping in your each step

  • Categories

  • Authors

Spring Security 3.0 – Part 6

Posted by Pankil Patel on April 30, 2010

How to use role base access into jsp with Spring Security 3.0?

or

How to render component / tag using defined role of Spring Security 3.0 into jsp?

Step 1:

Include <%@ taglib prefix=”sec” uri=”http://www.springframework.org/security/tags&#8221; %> into your jsp page.  And use <sec:authorize> tag to render role base component Like:

Note:

Please make sure that you have entry “/case/admin” into your “http” section of “applicationContext-security.xml” file like:

That’s it for using role into jsp……
Hureeeeeeeeeeee Ready to use access mechanism of spring Security 3.0. into your jsp.

BEST OF LUCK

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: