Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

struts logic:equal problem

843836Mar 11 2004 — edited Mar 19 2004
I'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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2004
Added on Mar 11 2004
2 comments
386 views