struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suresh Addagalla" <suresh.addaga...@wipro.com>
Subject RE: Struts equivalent of if...else (newbie)
Date Mon, 06 Jan 2003 14:24:57 GMT
Sorry for the haste..
Logic:equal doesn't seem to be working with local variables...

Suresh

>-----Original Message-----
>From: Suresh Addagalla [mailto:suresh.addagalla@wipro.com] 
>Sent: Monday, January 06, 2003 7:49 PM
>To: 'Struts Users Mailing List'
>Subject: RE: Struts equivalent of if...else (newbie)
>
>
>Well, as you guessed, I do have scriptlets. Now my effort is 
>to minimize
>or remove them completely.
>
>And I tried to use logic with local variables, it worked. Thanks for
>that. And still, logic:equal offers only if..then; is there any way to
>simulate if..then..else?
>
>Thanks,
>Suresh
>
>>-----Original Message-----
>>From: Siggelkow, Bill [mailto:bill.siggelkow@mirant.com] 
>>Sent: Monday, January 06, 2003 7:41 PM
>>To: 'Struts Users Mailing List'
>>Subject: RE: Struts equivalent of if...else (newbie)
>>
>>
>>I believe that the logic tags will work with a local variable 
>>-- anyway, if you don't want to use scriptlet, how did you 
>>create the local variable in the first place?
>>
>>-----Original Message-----
>>From: Suresh Addagalla [mailto:suresh.addagalla@wipro.com]
>>Sent: Monday, January 06, 2003 8:59 AM
>>To: struts-user@jakarta.apache.org
>>Subject: Struts equivalent of if...else (newbie)
>>
>>
>>Hi,
>> 
>>I would like to know if Struts provides a custom tag for 
>>achieving if..then..else functionality.
>> 
>>I can not use logic:equal because the data for me is NOT 
>>coming from either a bean or through the request. I just need 
>>to compare a variable. Is there any option apart from writing 
>>a cryptic looking scriptlet?
>> 
>>Thanks,
>>Suresh
>>
>>
>>--
>>To unsubscribe, e-mail:   
>><mailto:struts-user->unsubscribe@jakarta.apache.org>
>>For 
>>additional commands, 
>>e-mail: <mailto:struts-user-help@jakarta.apache.org>
>>
>
>


Mime
View raw message