You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2019/02/04 17:28:00 UTC

[jira] [Commented] (WW-5013) Accessing static variable via OGNL returns nothing

    [ https://issues.apache.org/jira/browse/WW-5013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16760046#comment-16760046 ] 

Lukasz Lenart commented on WW-5013:
-----------------------------------

You can temporary downgrade OGNL to version 3.1.18 - Struts 2.5.21 will be released soon with a proper fix.

> 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
>            Priority: Major
>             Fix For: 2.5.21, 2.6
>
>
> 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)