Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3469

convention plugin does not apply interceptors unless there is an Action

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.8.1
    • 2.3.1
    • Plugin - Convention
    • None
    • Patch

    Description

      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

      Attachments

        1. apply_interceptors.patch
          3 kB
          Brad Cupit

        Activity

          People

            jogep Johannes Geppert
            bradcupit Brad Cupit
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: