I have a problem with the following code in a jsp file:
<TR>
<TD colspan="2">
<c:choose>
<c:when test="${hasRequestedPwd}">
<bean:message key="Login.pwdemailinfo"/>
</c:when>
<c:otherwise>
<bean:message key="Login.advice"/>
</c:otherwise>
</c:choose>
</TD>
</TR>
I get back the following error:
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: /form/userLogin.jsp(24,6) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
I run Tomcat 5.5 which should be able to evaluate an expression such as above at runtime. In my Struts action I have the following code to set the property:
if (Success)
{
request.setAttribute("hasRequestedPwd", new Boolean(true));
request.setAttribute("subscriberID", generatePasswordForm.getLoginName());
return mapping.findForward("success");
}