ognl binding

Some tapestry users missed OGNL in Tapestry 5, and we hope that this binding helps you jump from Tap3/Tap4 to Tap5.

This binding lets you evaluate Java code directly from template via OGNL like above described.

first sample

the template ...

...

${ognl:getProperties('java.vendor')}

...

the page class

...

public String getProperties(String key)
{
    return System.getProperty(key);
}

...

second sample

the template ...

...

${ognl:new java.util.Date()}

...

This would render the actual server time into your page. For further documentation on OGNL, see the OGNL site.