Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

logic:match

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

<bean efine id=[B]"toCompare"[B] value="JAVA"/>

<logic:match name="data" property="name" value=[B]""[B] location="start">
Matching......
</logic:match>

i want to match name property with "JAVA" value but i dont want to write value="JAVA". is there any way i can compare with variable value. in this case can i specify compare with "toCompare" variable.

Thanks,
 
aamchi mumbai
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

<bean define id="toCompare" value="JAVA"/>

<logic:match name="data" property="name" value="" location="start">
Matching......
</logic:match>

i want to match name property with "JAVA" value but i dont want to write value="JAVA". is there any way i can compare with variable value. in this case can i specify compare with "toCompare" variable.

Thanks,
 
aamchi mumbai
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i got the answer

using this i can do that

logic:match name="data" property="name" value="<%=toCompare%>" location="start">
Matching......
</logic:match>
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic