RSS Feed
15
Oct.
2003

OGNL and Struts

Though I like JSTL I am sometimes missing the feature to call methods. Therefore I have played around a little bit with OGNL and Struts actions and I am very happy with the result. I have written a JSP tag that allows you to execute an OGNL expression. Furthermore I have extended my RequestProcessor once again. Now the action instance is visible to the OGNL tag as well. This allows me to call a method on the action from the OGNL tag! A sample JSP page might look like this:

<ognl:property value="formatTime(#created)"/>

Comments

1. Rick Hightower
Cool