Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.0-beta2
-
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
- duplicates
-
XW-147 Initialize/create OGNL ValueStack before instantiating the Action
- Closed