Get your CodeRanch badge!*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 52
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: 3946
    
  17

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to add condition in display tag?
 
Similar Threads
Display tag-Pagination result not working properly.
Display Tag Problem
Error while Exporting the display tag table content as a .pdf
struts2 + display tags + maps
SpringMVC 2.5 and DisplayTags