Hi,
Here is my code snippet. Basically, I am not sure which attribute of
"logic:equal" I have to use for scriptlet variables. It's printing "No"
and as per my requirements, it should be "Yes".
<%! String curr="Tracking"; %>
<logic:equal parameter="curr" value="Tracking">
Yes
</logic:equal>
<logic:notEqual parameter="curr" value="Tracking">
No
</logic:notEqual>
Thanks,
Suresh
>-----Original Message-----
>From: David M. Karr [mailto:[EMAIL PROTECTED]]
>Sent: Monday, January 06, 2003 9:23 PM
>To: [EMAIL PROTECTED]
>Subject: Re: Struts equivalent of if...else (newbie)
>
>
>>>>>> "Suresh" == Suresh Addagalla <[EMAIL PROTECTED]> writes:
>
> Suresh> Sorry for the haste..
> Suresh> Logic:equal doesn't seem to be working with local
>variables...
>
>The "logic:equal" tag should work fine with scripting
>variables defined by
>scriptlets. You'd have to show us your code for us to
>determine what's wrong.
>
>--
>===================================================================
>David M. Karr ; Java/J2EE/XML/Unix/C++
>[EMAIL PROTECTED] ; SCJP; SCWCD
**************************Disclaimer**************************************************
Information contained in this E-MAIL being proprietary to Wipro Limited is
'privileged'
and 'confidential' and intended for use only by the individual or entity to which it
is
addressed. You are notified that any use, copying or dissemination of the information
contained in the E-MAIL in any manner whatsoever is strictly prohibited.
****************************************************************************************
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>