• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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>
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic