WW-3714 Update new ActionContext with new ValueStack

This commit is contained in:
Kusal Kithul-Godage
2024-10-17 17:27:47 +11:00
parent 111bc25650
commit dfd07190bd
2 changed files with 7 additions and 3 deletions
@@ -163,15 +163,19 @@ public class ActionContext extends org.apache.struts2.ActionContext {
return super.getSession();
}
@Override
public ActionContext withValueStack(ValueStack valueStack) {
return withValueStack((org.apache.struts2.util.ValueStack) valueStack);
}
@Override
public ActionContext withValueStack(org.apache.struts2.util.ValueStack valueStack) {
super.withValueStack(valueStack);
return this;
}
@Override
public ValueStack getValueStack() {
return super.getValueStack();
return ValueStack.adapt(super.getValueStack());
}
@Override
@@ -20,9 +20,9 @@ package org.apache.struts2;
import com.opensymphony.xwork2.conversion.impl.ConversionData;
import com.opensymphony.xwork2.inject.Container;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.dispatcher.HttpParameters;
import org.apache.struts2.dispatcher.mapper.ActionMapping;
import org.apache.struts2.util.ValueStack;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;