You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Tom Nguyen (JIRA)" <ji...@apache.org> on 2014/12/11 12:57:13 UTC

[jira] [Created] (WW-4429) struts.ognl.allowStaticMethodAccess is not working for static method

Tom Nguyen created WW-4429:
------------------------------

             Summary: struts.ognl.allowStaticMethodAccess is not working for static method
                 Key: WW-4429
                 URL: https://issues.apache.org/jira/browse/WW-4429
             Project: Struts 2
          Issue Type: Bug
          Components: Core Actions
    Affects Versions: 2.3.20
            Reporter: Tom Nguyen



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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)