You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marc Eckart <ma...@googlemail.com> on 2008/03/26 09:44:31 UTC
Problem
Hi,
I want to use s:if with a Constant from a java class:
<s:if test="%{kzAuftr == Constants.ORDER_STATUS_EMPTY }">
But this does not work. It works if I use:
<s:if test="%{kzAuftr == 'L' }">
Is there a way to use the constants class?
Best Regards,
Marc
Re: Problem
Posted by Lukasz Lenart <lu...@googlemail.com>.
> <s:if test="%{kzAuftr == Constants.ORDER_STATUS_EMPTY }">
<s:if test="%{#kzAuftr == @full.package.Constants@ORDER_STATUS_EMPTY }"
and check this link, section Accessing static properties
http://struts.apache.org/2.x/docs/ognl-basics.html
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org