[
https://issues.apache.org/jira/browse/WW-4852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16158112#comment-16158112
]
Lukasz Lenart commented on WW-4852:
-----------------------------------
First of all accessing {{#context}} is an undocumented trick so hard to blame
us that we have changed internals. And as Yasser mentioned, it was due to
security reasons and I do not plan removing {{#request}} as these are
documented scopes
https://struts.apache.org/docs/ognl-basics.html
https://struts.apache.org/docs/ognl.html
> OGNL #context variable missing
> ------------------------------
>
> Key: WW-4852
> URL: https://issues.apache.org/jira/browse/WW-4852
> Project: Struts 2
> Issue Type: Bug
> Affects Versions: 2.3.34
> Reporter: Samuel Zihlmann
> Priority: Minor
> Fix For: 2.3.x
>
>
> Since the update to struts 2.3.34 the OGNL variable #context is not available
> in JSPs anymore.
> In old projects we used this to get the current struts action name:
> {code}
> <s:property value="#context['struts.actionMapping'].name"/>
> {code}
> The variable seems to be renamed, because this is working:
> {code}
> <s:property value="#request['struts.actionMapping'].name"/>
> {code}
> This should be mentioned in release notes.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)