• Post Reply Bookmark Topic Watch Topic
  • New Topic

Comparing ints using EL

 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:when test="${auctionData.firstUpdateCompleted} == 1">

I am outputing auctionData.firstUpdateCompleted before the choose tag, it contains a 1.

However the above test still fails. Is there an issue with object types going on here?

I tried the following:
<c:when test='${auctionData.firstUpdateCompleted} == "1"'>
<c:when test="${auctionData.firstUpdateCompleted} == 1">

Nothing. What is going on here?

NOTE: firstUpdateCompleted contains an int.

Thanks,

L
[ October 28, 2004: Message edited by: Luke Shannon ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65518
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


The braces must surround the entire EL expression.
 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, that does it.

Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!