diff --git a/core/src/main/java/org/apache/struts2/interceptor/TokenInterceptor.java b/core/src/main/java/org/apache/struts2/interceptor/TokenInterceptor.java index b67ef6422d..d72416209f 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/TokenInterceptor.java +++ b/core/src/main/java/org/apache/struts2/interceptor/TokenInterceptor.java @@ -18,14 +18,14 @@ */ package org.apache.struts2.interceptor; -import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.TextProvider; import com.opensymphony.xwork2.TextProviderFactory; import com.opensymphony.xwork2.inject.Inject; -import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.struts2.ActionInvocation; import org.apache.struts2.ServletActionContext; +import org.apache.struts2.interceptor.MethodFilterInterceptor; import org.apache.struts2.util.TokenHelper; import javax.servlet.http.HttpSession; diff --git a/core/src/main/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptor.java b/core/src/main/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptor.java index 2657fb7e68..45781d37cb 100644 --- a/core/src/main/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptor.java +++ b/core/src/main/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptor.java @@ -18,14 +18,14 @@ */ package org.apache.struts2.interceptor; -import com.opensymphony.xwork2.ActionContext; -import com.opensymphony.xwork2.ActionInvocation; -import com.opensymphony.xwork2.Result; -import com.opensymphony.xwork2.util.ValueStack; +import org.apache.struts2.ActionContext; +import org.apache.struts2.ActionInvocation; import org.apache.struts2.ServletActionContext; import org.apache.struts2.dispatcher.HttpParameters; +import org.apache.struts2.result.Result; import org.apache.struts2.util.InvocationSessionStore; import org.apache.struts2.util.TokenHelper; +import org.apache.struts2.util.ValueStack; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -182,8 +182,8 @@ protected String handleValidToken(ActionInvocation invocation) throws Exception // we know the token name and token must be there String key = TokenHelper.getTokenName(); String token = TokenHelper.getToken(key); - String sessionTokenName = TokenHelper.buildTokenSessionAttributeName(key); - InvocationSessionStore.storeInvocation(sessionTokenName, token, invocation); + String sessionTokenName = TokenHelper.buildTokenSessionAttributeName(key); + InvocationSessionStore.storeInvocation(sessionTokenName, token, invocation); return invocation.invoke(); } diff --git a/core/src/main/java/org/apache/struts2/util/InvocationSessionStore.java b/core/src/main/java/org/apache/struts2/util/InvocationSessionStore.java index c9fe66e8ea..1394fff72a 100644 --- a/core/src/main/java/org/apache/struts2/util/InvocationSessionStore.java +++ b/core/src/main/java/org/apache/struts2/util/InvocationSessionStore.java @@ -18,8 +18,8 @@ */ package org.apache.struts2.util; -import com.opensymphony.xwork2.ActionContext; -import com.opensymphony.xwork2.ActionInvocation; +import org.apache.struts2.ActionContext; +import org.apache.struts2.ActionInvocation; import java.io.Serializable; import java.util.HashMap; diff --git a/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java index 7c3624e421..3e65575be0 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/TokenInterceptorTest.java @@ -18,15 +18,15 @@ */ package org.apache.struts2.interceptor; -import com.opensymphony.xwork2.Action; -import com.opensymphony.xwork2.ActionContext; -import com.opensymphony.xwork2.ActionProxy; -import com.opensymphony.xwork2.util.ValueStack; +import org.apache.struts2.ActionContext; +import org.apache.struts2.ActionProxy; import org.apache.struts2.ServletActionContext; import org.apache.struts2.StrutsInternalTestCase; import org.apache.struts2.TestConfigurationProvider; +import org.apache.struts2.action.Action; import org.apache.struts2.dispatcher.HttpParameters; import org.apache.struts2.util.TokenHelper; +import org.apache.struts2.util.ValueStack; import org.apache.struts2.views.jsp.StrutsMockHttpServletRequest; import org.apache.struts2.views.jsp.StrutsMockHttpSession; diff --git a/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java b/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java index d02c8703ff..9195e92d92 100644 --- a/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java +++ b/core/src/test/java/org/apache/struts2/interceptor/TokenSessionStoreInterceptorTest.java @@ -18,10 +18,9 @@ */ package org.apache.struts2.interceptor; +import org.apache.struts2.ActionProxy; import org.apache.struts2.TestConfigurationProvider; - -import com.opensymphony.xwork2.Action; -import com.opensymphony.xwork2.ActionProxy; +import org.apache.struts2.action.Action; /** * Unit test for {@link TokenSessionStoreInterceptor}. diff --git a/core/src/test/java/org/apache/struts2/util/InvocationSessionStoreTest.java b/core/src/test/java/org/apache/struts2/util/InvocationSessionStoreTest.java index f9b4892b0b..16be215045 100644 --- a/core/src/test/java/org/apache/struts2/util/InvocationSessionStoreTest.java +++ b/core/src/test/java/org/apache/struts2/util/InvocationSessionStoreTest.java @@ -20,11 +20,11 @@ import com.mockobjects.dynamic.Mock; import com.mockobjects.servlet.MockPageContext; -import com.opensymphony.xwork2.ActionContext; -import com.opensymphony.xwork2.ActionInvocation; -import com.opensymphony.xwork2.ActionProxy; -import com.opensymphony.xwork2.util.ValueStack; +import org.apache.struts2.ActionContext; +import org.apache.struts2.ActionInvocation; +import org.apache.struts2.ActionProxy; import org.apache.struts2.StrutsInternalTestCase; +import org.apache.struts2.util.ValueStack; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream;