mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
WW-5382 Fix stale bootstrap context on ActionContext
This commit is contained in:
@@ -325,12 +325,8 @@ public class DefaultConfiguration implements Configuration {
|
||||
}
|
||||
|
||||
protected ActionContext setContext(Container cont) {
|
||||
ActionContext context = ActionContext.getContext();
|
||||
if (context == null) {
|
||||
ValueStack vs = cont.getInstance(ValueStackFactory.class).createValueStack();
|
||||
context = ActionContext.of(vs.getContext()).bind();
|
||||
}
|
||||
return context;
|
||||
ValueStack vs = cont.getInstance(ValueStackFactory.class).createValueStack();
|
||||
return ActionContext.of(vs.getContext()).bind();
|
||||
}
|
||||
|
||||
protected Container createBootstrapContainer(List<ContainerProvider> providers) {
|
||||
|
||||
Reference in New Issue
Block a user