Uploaded image for project: 'XWork'
  1. XWork
  2. XW-141

Refactor DefaultActionInvocation for Pico Integration

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.0-beta2
    • 1.0
    • None
    • None

    Description

      The goal is to faciliate PicoContainer and XWork integration done in the pico-extras webwork2 sub-project.

      Context:
      Pico-extras WW2 defines a sub-class of DefaultActionInvocation that overrides the protected createAction() method. At that point it needs to retrieve the HttpServletRequest but the value stack is not ready (getStack() returns null).

      My understanding is that the servlet request will either be in the
      extraContext or in the context of the value stack (in case we are chaining actions). I am also assuming that the extraContext is never null.

      Proposition:
      Modify DefaultActionInvocation init() method to make sure that the value stack is properly created and populated with the extraContext before createAction() is called. Then after creation, the action could be pushed on the stack.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vtence Vincent Tence
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: