<% request.setAttribute("decorator", "none"); response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); //HTTP 1.0 response.setDateHeader ("Expires", 0); //prevents caching at the proxy server %>

Static fields

Static fields can easily be accessed in OGNL expressions using the notation @some.package.ClassName@PROPERTY_NAME for properties, and @some.package.ClassName@METHOD_NAME() for methods.

To access the value of the CONSTANT field in the ExampleAction type:

@org.apache.struts2.showcase.action.ExampleAction@CONSTANT

on the OGNL console and hit enter. Do it for me

To execute the static method getCurrentDate in the ExampleAction type:

@org.apache.struts2.showcase.action.ExampleAction@getCurrentDate()

on the OGNL console and hit enter. Do it for me


[More details on static fields] [More details on static methods]