On 2/9/07, Nestor Urquiza <[EMAIL PROTECTED]> wrote:
Hi guys,
Just wondering if someone was able to use from JEXL
something like:

<var name="foo" expr="MyClass.myStaticMethod()">


Right now I can do:
<var name="foo" expr="myInstance.myNonStaticMethod()">

given the fact that I previously have:
MyClass myInstance = new MyClass();
rootCtx.set("myinstance", myinstance );

<snip/>

I'd expect static invocation to work similarly (will need JEXL 1.1), i.e. if:

rootCtx.set("System", System.class);

then:

<var name="currentTimeMillis" expr="System.currentTimeMillis()" />

-Rahul


Thanks for the help in advance,

-Nestor





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to