You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Johannes Geppert (JIRA)" <ji...@apache.org> on 2011/04/28 20:30:03 UTC

[jira] [Closed] (WW-3469) convention plugin does not apply interceptors unless there is an Action

     [ https://issues.apache.org/jira/browse/WW-3469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Geppert closed WW-3469.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3
         Assignee: Johannes Geppert

> convention plugin does not apply interceptors unless there is an Action
> -----------------------------------------------------------------------
>
>                 Key: WW-3469
>                 URL: https://issues.apache.org/jira/browse/WW-3469
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Convention
>    Affects Versions: 2.1.8.1
>            Reporter: Brad Cupit
>            Assignee: Johannes Geppert
>             Fix For: 2.3
>
>         Attachments: apply_interceptors.patch
>
>
> When you have a JSP but no corresponding action, the convention plugin does not run the interceptors.
> The code exists in ConventionUnknownHandler, but is commented out.
> On 2007 Dec. 28 r607248, bpontarelli commented the code out, with this comment: Finished bug fixes and unit tests for first alpha
> I'm not sure whether it was purposefully commented out, or accidentally commented out
> I have tested the commented-out code and it does work.
> In Struts 2.0 + Codebehind + zero config, the interceptors were run when there was no corresponding action.
> Why do I need interceptors when there is no action?
> ----------------------------------------------------------------------
> We have some interceptors which set values in the request/session and we'd like to access these values in the JSP

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira