I want to show content to any user that is logged in and to hide if they are not logged in. I\'m using jsp\'s and spring security.
Obviously a home grown solution i
I've had success with the following:
">Login
">Logout
New roles can be added without affecting the logic here.
To bring this answer up to date with Spring Security 3, using the isAnonymous() and isAuthenticated() expressions have worked well in combination thus far to achieve the same thing. Here's an example:
">Logout