Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
any
Description
While running the interactive demo in the struts2-showcase, the section entitled - "Static fields" instructs the user to enter ' @org.apache.struts2.showcase.action.ExampleAction@getCurrentDate()' into the OGNL console. This returns 'null' though because static methods are not allowed. The fix would either be to allow static methods using the configuration 'struts.ognl.allowStaticMethodAccess' constant, or to take this section out if we are discouraging calling static methods.