struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Välimaa" <valimaa.ju...@gmail.com>
Subject Re: S2: Using static methods in validator configuration
Date Tue, 16 Sep 2008 07:12:38 GMT
Interestingly enough, if I try to access a static field, it works. In the
same class I havepublic static final String NOURL = "not_an_url";

and

public static boolean retTrue(){
return true;
}

In validation, this expression passes:
@myapp.webapp.util.MyClass@NOURL.equals('not_an_url')

and this fails:
@myapp.webapp.util.MyClass@retTrue()

On Mon, Sep 15, 2008 at 3:23 PM, Lukasz Lenart <lukasz.lenart@googlemail.com
> wrote:

> That's strange, it should work even without parse param set to true,
> could you post some more details?
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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