A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
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?
Don't get me started about those stupid
subject: How to compare a Short with 1 in OGNL (Struts 2)
How to access static fields using OGNL in Struts 2
OGNL fixing precedence with ()
Null Point Exception
struts $ and % difference
OGNL if test throws null stacktrace error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014