Authorization Tag Library question
Hi guys,
In my app I have a form login for authentication in the header of all my app pages. I must show de form when the user are not logged in and your data when it's logged. Googling a litle bit I found the authorization tag library, and I have tried this:
Code:
...
<sec:authorize ifNotGranted="ROLE_USER">
<!-- show the form stuff -->
</sec:authorize>
<sec:authorize ifAllGranted="ROLE_USER">
<!-- show the user stuff -->
</sec:authorize>
...
But unfortunately this not worked for me. I've tried use the ifAnyGranted attribute but without success.
Any of you guys have some advice to me?!? I´m stucked on this problem and I want to use the power of this taglibs over the overhead of making custom code to handle this.
tks in advice.