• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

compare more than one value using logic equal in struts

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 Java layer rather than doing in the JSP itself.
 
reply
    Bookmark Topic Watch Topic
  • New Topic