struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "k918912 (JIRA)" <j...@apache.org>
Subject [jira] [Created] (WW-5013) Accessing static variable via OGNL returns nothing
Date Mon, 04 Feb 2019 14:50:00 GMT
k918912 created WW-5013:
---------------------------

             Summary: Accessing static variable via OGNL returns nothing
                 Key: WW-5013
                 URL: https://issues.apache.org/jira/browse/WW-5013
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.5.20
            Reporter: k918912


Accessing static variables of a public class does not seem to work. I tried setting the struts.ognl.allowStaticMethodAccess
= true in the project root's struts.properties but it didn't change anything.

{code:html}
<s:property value="@de.mytest.common.Constants@CONSTANT" default="Nothing" />
{code}
For this, I get "Nothing" as the output. It seems to have worked in 2.5.18.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message