Why cant I do the following...
I'm trying to set a variable with the value of the error message from the session object.
<c:set var="reason" value="<%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>"></c:set>
<c:choose>
<c:when test="${reason=='User is disabled'}">
Dont be Daft!!! Use YOUR username and password
</c:when>
<c:otherwise>
<%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %>
</c:otherwise>
</c:choose>
However whenever I deploy I get the following error;
org.apache.jasper.JasperException: /acegilogin.jsp(29,8) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
okay, fair enough. But then how do I set a variable to the value of this error message and then hence how do i run a check on it?
Message was edited by:
DontKnowJack

