WW-3714 Moves all classes from com.opensymphony.xwork2 into org.apache.struts2

This commit is contained in:
Kusal Kithul-Godage
2024-10-16 14:00:34 +11:00
parent 08d54d2b66
commit 32bc4045ba
1454 changed files with 6073 additions and 10262 deletions
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
import com.opensymphony.xwork2.util.ClassLoaderUtil;
import org.apache.struts2.util.ClassLoaderUtil;
import org.apache.velocity.exception.ResourceNotFoundException;
import org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader;
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
import org.apache.struts2.util.ValueStackProvider;
import org.apache.velocity.VelocityContext;
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.views.velocity;
import com.opensymphony.xwork2.ObjectFactory;
import com.opensymphony.xwork2.inject.Container;
import com.opensymphony.xwork2.inject.Inject;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.ObjectFactory;
import org.apache.struts2.inject.Container;
import org.apache.struts2.inject.Inject;
import org.apache.struts2.util.ValueStack;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
@@ -18,9 +18,9 @@
*/
package org.apache.struts2.views.velocity;
import com.opensymphony.xwork2.config.ConfigurationException;
import com.opensymphony.xwork2.inject.ContainerBuilder;
import com.opensymphony.xwork2.util.location.LocatableProperties;
import org.apache.struts2.config.ConfigurationException;
import org.apache.struts2.inject.ContainerBuilder;
import org.apache.struts2.util.location.LocatableProperties;
import org.apache.struts2.config.AbstractBeanSelectionProvider;
import org.apache.struts2.config.StrutsBeanSelectionProvider;
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
import org.apache.struts2.util.StrutsUtil;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.context.Context;
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
import com.opensymphony.xwork2.ActionContext;
import org.apache.struts2.ActionContext;
import jakarta.servlet.ServletContext;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.context.Context;
@@ -40,8 +40,8 @@ import org.apache.velocity.exception.ResourceNotFoundException;
import org.apache.velocity.runtime.directive.Directive;
import org.apache.velocity.runtime.parser.node.Node;
import com.opensymphony.xwork2.inject.Container;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.inject.Container;
import org.apache.struts2.util.ValueStack;
public abstract class AbstractDirective extends Directive {
public String getName() {
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ActionComponent;
import org.apache.struts2.components.Component;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see ActionComponent
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ActionError;
import org.apache.struts2.components.Component;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see ActionError
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ActionMessage;
import org.apache.struts2.components.Component;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see ActionMessage
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Anchor;
import org.apache.struts2.components.Component;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Anchor
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Bean;
import org.apache.struts2.components.Component;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Bean
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Checkbox;
import org.apache.struts2.components.Component;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Checkbox
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.CheckboxList;
import org.apache.struts2.components.Component;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see CheckboxList
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.ComboBox;
import org.apache.struts2.components.Component;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see ComboBox
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.GenericUIBean;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see GenericUIBean
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Date;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* <code>DateDirective</code>
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.DoubleSelect;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see DoubleSelect
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.FieldError;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see FieldError
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.File;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see File
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Form;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Form
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Head;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Head
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Hidden;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Hidden
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.I18n;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see I18n
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Include;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Include
@@ -20,7 +20,7 @@ package org.apache.struts2.views.velocity.components;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.InputTransferSelect;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Label;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Label
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.OptGroup;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* OptGroup velocity directive.
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.OptionTransferSelect;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see OptionTransferSelect
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Param;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Param
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Password;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Password
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Property;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
*/
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Push;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Push
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Radio;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Radio
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Reset;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see org.apache.struts2.components.Reset
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Select;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Select
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Set;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Set
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Submit;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Submit
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.TextArea;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see TextArea
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Text;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Text
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.TextField;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see TextField
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.Token;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see Token
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.URL;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see URL
@@ -24,7 +24,7 @@ import jakarta.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.components.UpDownSelect;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
/**
* @see UpDownSelect
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.views.velocity.result;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.inject.Inject;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.ActionContext;
import org.apache.struts2.ActionInvocation;
import org.apache.struts2.inject.Inject;
import org.apache.struts2.util.ValueStack;
import jakarta.servlet.Servlet;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity.template;
import com.opensymphony.xwork2.inject.Inject;
import org.apache.struts2.inject.Inject;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
@@ -18,7 +18,7 @@
*/
package org.apache.struts2.views.velocity;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.util.ValueStack;
import org.apache.velocity.VelocityContext;
import org.junit.Before;
import org.junit.Rule;
@@ -18,8 +18,8 @@
*/
package org.apache.struts2.views.velocity;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.util.ValueStack;
import org.apache.struts2.ActionContext;
import org.apache.struts2.util.ValueStack;
import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
@@ -18,10 +18,10 @@
*/
package org.apache.struts2.views.velocity.result;
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.util.ValueStack;
import org.apache.struts2.junit.XWorkJUnit4TestCase;
import org.apache.struts2.result.StrutsResultSupport;
import org.apache.velocity.Template;
@@ -20,8 +20,8 @@ package org.apache.struts2.views.velocity.template;
import com.mockobjects.dynamic.C;
import com.mockobjects.dynamic.Mock;
import com.opensymphony.xwork2.XWorkTestCase;
import com.opensymphony.xwork2.inject.Container;
import org.apache.struts2.XWorkTestCase;
import org.apache.struts2.inject.Container;
import org.apache.struts2.components.template.FreemarkerTemplateEngine;
import org.apache.struts2.components.template.JspTemplateEngine;
import org.apache.struts2.components.template.Template;