This week's book giveaway is in the
We're giving away four copies of
and have Sam Newman on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
compare more than one value using logic equal in struts
Joined: Feb 22, 2010
Aug 16, 2010 02:06:04
I want to compare more than value and display a field using <logic:equal>. Please proveide some examples
<logic:equal name="apcDetailsForm" property="selectedSheetTemplate" value="2"||"3" >
Will this work?
Joined: Sep 29, 2008
Aug 16, 2010 05:18:46
You tell us--*does* it work?
You'd be better off using JSTL's c:if tag; when functionality overlaps with the JSTL you should favor the JSTL. This also gives you a complete EL that will allow you to do more complex calculations.
That said, if the calculation is even remotely complex, I'd consider moving the logic to the
layer rather than doing in the
Have you checked out
subject: compare more than one value using logic equal in struts
logic:equal comparison against int data type
Comparing values in struts using logic:equal..
bean:message tag inside logic:equal
logic:equal compare two values
display selective value from VECTOR
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015