A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
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?
I agree. Here's the link:
- it saves me about five hours per week
subject: How to compare a Short with 1 in OGNL (Struts 2)
struts $ and % difference
Null Point Exception
OGNL fixing precedence with ()
OGNL if test throws null stacktrace error
How to access static fields using OGNL in Struts 2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013