This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

value of boolean set in bean in jstl

 
B Hagan
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a boolean that is being set in a bean, but jstl can't seem to test for it.
if i try this:
<c ut value="${currentService.recurring}"/>
it produces "true"
but when I try to test for it using:
<c:choose>
<c:when test="currentService.recurring eq 'true'">
<span>Recurring Service</span>
</c:when>
<c therwise>
<span>Non-recurring Service</span>
</c therwise>
</c:choose>
or this:
<c:choose>
<c:when test="currentService.recurring eq true">
<span>Recurring Service</span>
</c:when>
<c therwise>
<span>Non-recurring Service</span>
</c therwise>
</c:choose>
it always falls into the otherwise block.
Is there something i'm missing?
Thanks in advance for your help!!
 
B Hagan
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or it might help if i escaped into the expression language....
forgot my ${}....
Doh!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic