mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-3815: Dispatching after action phase renders with different stack/TextProvider
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1338360 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+2
-5
@@ -35,10 +35,7 @@ import javax.portlet.ActionResponse;
|
||||
import javax.portlet.RenderRequest;
|
||||
import java.util.Map;
|
||||
|
||||
import static org.apache.struts2.portlet.PortletConstants.EVENT_ACTION;
|
||||
import static org.apache.struts2.portlet.PortletConstants.REQUEST;
|
||||
import static org.apache.struts2.portlet.PortletConstants.RESPONSE;
|
||||
import static org.apache.struts2.portlet.PortletConstants.STACK_FROM_EVENT_PHASE;
|
||||
import static org.apache.struts2.portlet.PortletConstants.*;
|
||||
|
||||
public class PortletStateInterceptor extends AbstractInterceptor {
|
||||
|
||||
@@ -83,7 +80,7 @@ public class PortletStateInterceptor extends AbstractInterceptor {
|
||||
CompoundRoot oldRoot = oldStack.getRoot();
|
||||
ValueStack currentStack = invocation.getStack();
|
||||
CompoundRoot root = currentStack.getRoot();
|
||||
root.addAll(oldRoot);
|
||||
root.addAll(0, oldRoot);
|
||||
if (LOG.isDebugEnabled()) LOG.debug("Restored stack");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user