Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

logic:match

 
aamchi mumbai
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic