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

struts.ognl.allowStaticMethodAccess is not working for static method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.20
    • Fix Version/s: 2.3.24
    • Component/s: Core Actions
    • Labels:
    • Flags:
      Important

      Description

      Setting <constant name="struts.ognl.allowStaticMethodAccess" value="true"/> in struts.xml can only allow access to static fields but not static methods
      for example
      <s:property value="@java.util.Calendar@DAY_OF_WEEK"/> is working
      But
      <s:property value="@com.your.full.package.Classname@methodName(optionalParameters)" /> not working

      This feature used to work in struts-2.3.16.3, but not working after upgrade to struts-2.3.20

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukaszlenart Lukasz Lenart
                Reporter:
                dohoangn@gmail.com Tom Nguyen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: