wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 4165
    
  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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to add condition in display tag?
 
Similar Threads
SpringMVC 2.5 and DisplayTags
Display tag-Pagination result not working properly.
struts2 + display tags + maps
Error while Exporting the display tag table content as a .pdf
Display Tag Problem