This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to compare a Short with 1 in OGNL (Struts 2)  RSS feed

 
Andrei Antonescu
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I would like to write in OGNL smth like this:



where y is of type "Short". Writing it in that form (y==1) doesn't seem to work.
Can you please help me?

Thanks in advance.
 
Richard Golebiowski
Ranch Hand
Posts: 213
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should. Do you have a getter?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!