>>>>> "Suresh" == Suresh Addagalla <[EMAIL PROTECTED]> writes:
Suresh> Hi,
Suresh> Here is my code snippet. Basically, I am not sure which attribute of
Suresh> "logic:equal" I have to use for scriptlet variables. It's printing "No"
Suresh> and as per my requirements, it should be "Yes".
Suresh> <%! String curr="Tracking"; %>
Suresh> <logic:equal parameter="curr" value="Tracking">
Suresh> Yes
Suresh> </logic:equal>
Suresh> <logic:notEqual parameter="curr" value="Tracking">
Suresh> No
Suresh> </logic:notEqual>
There is no variant of "logic:equal" which compares the value against an
arbitrary expression. You can compare the value against a cookie, header,
request parameter, or bean property.
Your options are:
1. Use a pure scriptlet to do the comparison.
2. Use either "c:if" or "c:choose/c:when" from the JSTL.
--
===================================================================
David M. Karr ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED] ; SCJP; SCWCD
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>