Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other Open Source Projects and the fly likes how to add condition in display tag? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "how to add condition in display tag?" Watch "how to add condition in display tag?" New topic
Author

how to add condition in display tag?

Happy S Singh
Ranch Hand

Joined: Nov 14, 2011
Posts: 54
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

Joined: Jan 28, 2003
Posts: 4181
    
  21

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.


Steve
 
 
subject: how to add condition in display tag?