struts logic:equal problem
843836Mar 11 2004 — edited Mar 19 2004I'm trying to use a struts tag to enable or disable a button dependent on certain variables
in the session object. When I use session variable references like the following,
the equals never evaluates properly even when I know that LIST_INDEX and LIST_LENGTH
are the same:
<logic:equal scope="session" name="LIST_INDEX" value="LIST_LENGTH >
<html:submit property="submitNext" value="Next" disabled="true" />
</logic:equal >
If I use a literal value like value="1" then it works.
If I try value="<%=session.getAttribute("LIST_LENGTH") the page won't even compile.
Any suggestions on how to work around this problem? TIA