-
Dec 18th, 2011, 12:35 PM
#1
How to check for null in <authentication> jsp tag
I am using the authentication tag in my jsp pages, which is referenced from the <access-denied-handler>
This shows the email address of the person who tired to login.
Eg:- denied.jsp
Access Denied <sec:authentication property="principal.username" />
If I refer to this jsp directly before I login, I get a server error, because there is no authentication context.
Now I could use Java directly within jsp, and check for nulls but was wondering if there was a better way to
do this from the tag itself.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules