struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Display only 100 chars of a string
Date Tue, 23 Jun 2009 12:30:25 GMT
Stefano Tranquillini wrote:
> About this link:
> http://www.opensymphony.com/ognl/html/LanguageGuide/staticMethods.html
> 
> said: You can call a static method using the syntax
> @class@method(args). If you leave out class, it defaults to
> java.lang.Math, to make it easier to call min and max methods. If you
> specify the class, you must give the fully qualified name.
> 
> but, i don't understand how to call the min method of math is i.e.
> @method(min(100,1000)) ?? or what else?

What have you tried so far? I sure wouldn't think the word "method" 
should appear--why not just try what seems obvious, for example 
"@@min(...)" or "@min(...)"?

I think I'd be more comfortable specifying the full class anyway.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message