struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yasser Zamani (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WW-4852) OGNL #context variable missing
Date Fri, 08 Sep 2017 05:47:00 GMT

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

Yasser Zamani edited comment on WW-4852 at 9/8/17 5:46 AM:
-----------------------------------------------------------

Ouch! I confused #request with ServletRequest at moment. [~samized] using {{#request}} is
clean and good.

[~lukaszlenart] what's your idea about importing something like [this solution|https://mail-archives.apache.org/mod_mbox/struts-dev/201707.mbox/%3CDB5PR08MB1062D3E6D3D0C002F87442AE92A50%40DB5PR08MB1062.eurprd08.prod.outlook.com%3E]
to Struts2. i.e. allowing user to inject his/her specific utility class into ognl scopes when
his/her primitive info (e.g. a simple String) is not accessible because of our exclusions?
I can work on that and required documentations on site.


was (Author: yasser.zamani):
Ouch! I confused #request with ServletRequest at moment. [~samized] using {{#request}} is
clean and good.

[~lukaszlenart] what's your idea about importing something like [this solution|https://mail-archives.apache.org/mod_mbox/struts-dev/201707.mbox/%3CDB5PR08MB1062D3E6D3D0C002F87442AE92A50%40DB5PR08MB1062.eurprd08.prod.outlook.com%3E]
to Struts2. i.e. allowing user to inject his/her specific utility class into ognl scopes when
his/her primitive info (e.g. a simple String) is not accessible because of our exclusions?

> 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)

Mime
View raw message