struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Bohnenberger <bill98...@gmail.com>
Subject Re: How to access enum in jsp?
Date Sun, 06 Sep 2009 17:10:48 GMT
Ah ha! So when code the test attribute like this:

    test="%{state == @com.yata.yata.ActionState@LIST}"

it works. Thanks, Pawel!

- Bill

P.S. That syntax sux :-)

2009/9/6 Paweł Wielgus <poulwiel@gmail.com>

> Hi Bill,
> You are comparing string with enum by == operator, so it's always false.
> Also if You see this value in debug it's the effect of toString() method.
> You can access enum like this com.something.ActionState@NONE
> if i remebmer correctly.
>
> Best greetings,
> Paweł Wielgus.
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message