File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tag textfield: how to avoid blank values while displaying in jsp page

 
Nandish Sri
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using struts 2 textfield tag to display values with label. Sometimes these tags may have value or sometimes empty string or null.
I want to display these values ONLY when they are having values [Non Empty]. Currently if it contains blank values, only labels are displaying. I want to avoid this.
Is there any configuration for this ? If Yes please let me know. If no, what is the alternative for this ?


 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd need to wrap them in something that checks for the presence of a value, like JSTL's <c:if>, or S2's <s:if>.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic