Deprecated API


Contents
Deprecated Classes
org.apache.struts2.dispatcher.ActionContextCleanUp
          Since Struts 2.1.3, use StrutsPrepareFilter and StrutsExecuteFilter to use other Servlet filters that need access to the ActionContext 
com.opensymphony.xwork2.conversion.impl.AnnotationXWorkConverter
          Since XWork 2.0.4, the implementation of XWorkConverter handles the processing of annotations. 
com.opensymphony.xwork2.conversion.impl.EnumTypeConverter
          Since Struts 2.1.0 as enum support is now built into XWork 
org.apache.struts2.dispatcher.FilterDispatcher
          Since Struts 2.1.3, use StrutsPrepareAndExecuteFilter instead or StrutsPrepareFilter and StrutsExecuteFilter if needing using the ActionContextCleanUp filter in addition to this one 
org.apache.struts2.dispatcher.FilterDispatcherCompatWeblogic61
          Since Struts 2.1.3 as it probably isn't used anymore 
com.opensymphony.xwork2.conversion.impl.GenericsObjectTypeDeterminer
          Use DefaultObjectTypeDeterminer instead. Since XWork 2.0.4 the DefaultObjectTypeDeterminer handles the annotation processing. 
com.opensymphony.xwork2.MockActionInvocation
          Please use @see com.opensymphony.xwork2.mock.MockActionInvocation instead 
org.apache.struts2.config.Settings
          Since Struts 2.1.2 
 

Deprecated Annotation Types
com.opensymphony.xwork2.validator.annotations.Validation
          Since Struts 2.1 because it isn't necessary anymore 
 

Deprecated Fields
com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.CREATE_NULL_OBJECTS
          Use ReflectionContextState.CREATE_NULL_OBJECTS instead 
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.DENY_INDEXED_ACCESS_EXECUTION
          Use ReflectionContextState.DENY_INDEXED_ACCESS_EXECUTION instead 
com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.DENY_METHOD_EXECUTION
          Use ReflectionContextState.DENY_METHOD_EXECUTION instead 
org.apache.struts2.StrutsConstants.STRUTS_FREEMARKER_TEMPLATES_CACHE
           
 

Deprecated Methods
com.opensymphony.xwork2.config.ConfigurationManager.addConfigurationProvider(ConfigurationProvider)
          Since 2.1, use #addContainerProvider() 
com.opensymphony.xwork2.config.ConfigurationManager.clearConfigurationProviders()
          Since 2.1, use ConfigurationManager.clearContainerProviders() 
com.opensymphony.xwork2.ActionProxyFactory.createActionProxy(String, String, Map)
          Since 2.1.1, use instead 
com.opensymphony.xwork2.ActionProxyFactory.createActionProxy(String, String, Map, boolean, boolean)
          Since 2.1.1, use ActionProxyFactory.createActionProxy(String,String,String,Map,boolean,boolean) instead 
org.apache.struts2.dispatcher.mapper.DefaultActionMapper.dropExtension(String)
          Since 2.1, use DefaultActionMapper.dropExtension(java.lang.String,org.apache.struts2.dispatcher.mapper.ActionMapping) instead 
com.opensymphony.xwork2.util.AnnotationUtils.findAnnotatedMethods(Class, Class)
          since 2.0.4 use getAnnotatedMethods 
com.opensymphony.xwork2.util.AnnotationUtils.findRecursively(Class, Class, List)
          since 2.0.4 use getAnnotatedMethods 
com.opensymphony.xwork2.config.entities.ResultTypeConfig.getClazz()
          Since 2.1, use ResultTypeConfig.getClassName() instead 
com.opensymphony.xwork2.config.ConfigurationManager.getConfigurationProviders()
          Since 2.1, use ConfigurationManager.getContainerProviders() 
com.opensymphony.xwork2.ActionSupport.getErrorMessages()
          Use ActionSupport.getActionErrors(). 
com.opensymphony.xwork2.ActionSupport.getErrors()
          Use ActionSupport.getFieldErrors(). 
org.apache.struts2.views.xslt.XSLTResult.getExcludingPattern()
          Since 2.1.1 
org.apache.struts2.views.xslt.XSLTResult.getMatchingPattern()
          Since 2.1.1 
com.opensymphony.xwork2.ObjectFactory.getObjectFactory()
          Since 2.1 
org.apache.struts2.servlet.interceptor.ServletPrincipalProxy.getRequest()
          To obtain the HttpServletRequest in your action, use org.apache.struts2.servlet.ServletRequestAware, since this method will be dropped in future. 
org.apache.struts2.interceptor.PrincipalProxy.getRequest()
          To obtain the HttpServletRequest in your action, use org.apache.struts2.servlet.ServletRequestAware, since this method will be dropped in future. 
com.opensymphony.xwork2.XWorkException.getThrowable()
          Use Throwable.getCause() 
org.apache.struts2.components.Token.getTokenNameField()
          Templates should use $parameters from now on, not $tag. 
org.apache.struts2.util.StrutsUtil.include(Object, HttpServletRequest, HttpServletResponse)
          the request and response are stored in this util class, please use include(string) 
com.opensymphony.xwork2.spring.SpringObjectFactory.initObjectFactory()
          Since 2.1 as it isn't necessary 
com.opensymphony.xwork2.config.Configuration.reload(List)
          Since 2.1 
com.opensymphony.xwork2.config.ConfigurationManager.setConfigurationProviders(List)
          Since 2.1, use #setContainerProvider() 
org.apache.struts2.views.xslt.XSLTResult.setExcludingPattern(String)
          Since 2.1.1 
org.apache.struts2.views.xslt.XSLTResult.setLocation(String)
          Use #setStylesheetLocation(String) 
org.apache.struts2.views.xslt.XSLTResult.setMatchingPattern(String)
          Since 2.1.1 
org.apache.struts2.views.jsp.ui.TextFieldTag.setMaxLength(String)
          please use TextFieldTag.setMaxlength(java.lang.String) instead 
 

Deprecated Constructors
com.opensymphony.xwork2.config.impl.ActionConfigMatcher(Map)
          Since 2.1, use ActionConfigMatcher.ActionConfigMatcher(PatternMatcher, Map, boolean) instead 
com.opensymphony.xwork2.config.impl.ActionConfigMatcher(Map, boolean)
          Since 2.1, use ActionConfigMatcher.ActionConfigMatcher(PatternMatcher, Map, boolean) instead 
 



Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.