Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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