A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
How to compare a Short with 1 in OGNL (Struts 2)
Joined: Jul 08, 2010
Aug 05, 2010 14:10:53
I would like to write in OGNL smth like this:
<s:if test="y==1"> ... </s:if>
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.
Joined: May 05, 2010
Aug 05, 2010 15:59:43
It should. Do you have a getter?
Have you checked out
subject: How to compare a Short with 1 in OGNL (Struts 2)
Null Point Exception
How to access static fields using OGNL in Struts 2
OGNL fixing precedence with ()
OGNL if test throws null stacktrace error
struts $ and % difference
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015