Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2441

interactive demo gives bad instructions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.1
    • Example Applications
    • 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.

      Attachments

        Activity

          People

            wesw@wantii.com Wes Wannemacher
            wesw@wantii.com Wes Wannemacher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: