This content has been marked as final.
Show 2 replies
-
1. Re: get loginexception back
johnn Feb 9, 2007 12:18 AM (in response to kristof.devos)If you have access to the session then you possible have access to the j_exception attribute...
I am using Struts so I first check if j_exception is in the session with: (in your JSP):<logic:present name="j_exception"> ... </logic:present>
if it is in the session, grab the object and use it:<% LoginModuleException f = (LoginModuleException)session.getAttribute("j_exception"); if (f.getType()==0){ %>Check your Username / Password<br /><% } else if (f.getType()==1) { %>Check you are not logged in on another device<br /><% } %>
hope this helps -
2. Re: get loginexception back
kristof.devos Feb 9, 2007 3:04 AM (in response to kristof.devos)idd we did quite the same
tried also with a filter but apparently filters are not executed on j_security_check
thx for the reply