• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to add condition in display tag?

 
Happy S Singh
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display the link on the basis of some condition .I tried below snippet but getting error



How to get this value ${data.zone} ?
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't mix tags and scriptlets and expect them to work - they get executed at different stages in the JSP - to - HTML conversion. Instead, use the core JSTL <c:if > tag (see this documentation which may be out of date...) instead.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic