Deprecated API

Contents

Deprecated Interfaces

ComponentDefinitionsFactory
Use DefinitionsFactory instead.

Deprecated Classes

ActionComponentServlet
Tiles now uses ActionServlet with TilesPlugin and TilesRequestProcessor.
ActionException
Replaced by org.apache.struts.config.ExceptionConfig
ActionFormBeans
Replaced by collection of FormBeanConfig instances in ModuleConfig
ActionForwards
Replaced by collection of ForwardConfig instances in
ActionMappings
Replaced by collection of ActionConfig instances in
AppException
ApplicationConfig
Usage replaced by ModuleConfig Interface.
AttributeToScopeTag
Is it still in use ?
Content
Use Tiles instead.
ContentMap
Use Tiles instead.
ContentMapStack
Use Tiles instead.
DefinitionsUtil
ErrorMessages
Use org.apache.struts.action.ActionErrors instead
GenericDataSource
Use a BasicDataSource directly, or indirectly acquire a data source provided by your container
GetTag
Use Tiles instead.
InsertTag
Use Tiles instead.
IteratorAdapter
Use commons-collections' IteratorUtils.asIterator(Enumeration).
NoOpAction
Use o.a.s.a.ForwardAction instead with the parameter attribute: <action path="aPath" type="org.apache.struts.actions.ForwardAction" parameter="tiles.def.name" />
PutTag
Use Tiles instead.
StrutsValidator
As of Struts 1.1, replaced by FieldChecks
StrutsValidatorUtil
As of Struts 1.1, replaced by Resources
TextTag
Use o.a.s.taglib.html.TextTag instead.
TilesServlet
Use the ActionServlet instead.

Deprecated Fields

org.apache.struts.action.Action.ACTION_SERVLET_KEY
Use Globals.ACTION_SERVLET_KEY instead.
org.apache.struts.action.Action.APPLICATION_KEY
Replaced by Globals.MODULE_KEY
org.apache.struts.action.Action.DATA_SOURCE_KEY
org.apache.struts.action.Action.ERROR_KEY
Replaced by Globals.ERROR_KEY
org.apache.struts.action.Action.EXCEPTION_KEY
org.apache.struts.action.Action.FORM_BEANS_KEY
Replaced by collection in ModuleConfig
org.apache.struts.action.Action.FORWARDS_KEY
Replaced by collection in ModuleConfig.
org.apache.struts.action.Action.LOCALE_KEY
Replaced by Globals.LOCALE_KEY
org.apache.struts.action.Action.MAPPING_KEY
org.apache.struts.action.Action.MAPPINGS_KEY
Replaced by collection in ModuleConfig
org.apache.struts.action.Action.MESSAGE_KEY
org.apache.struts.action.Action.MESSAGES_KEY
Use Globals.MESSAGES_KEY instead.
org.apache.struts.action.Action.MULTIPART_KEY
Use Globals.MULTIPART_KEY instead.
org.apache.struts.action.Action.PLUG_INS_KEY
org.apache.struts.action.Action.REQUEST_PROCESSOR_KEY
Use Globals.REQUEST_PROCESSOR_KEY instead.
org.apache.struts.action.Action.SERVLET_KEY
Use Globals.SERVLET_KEY instead.
org.apache.struts.action.Action.TRANSACTION_TOKEN_KEY
Use Globals.TRANSACTION_TOKEN_KEY instead.
org.apache.struts.action.ActionServlet.debug
org.apache.struts.config.ControllerConfig.debug
Configure the logging detail level in your underlying logging implemenation
org.apache.struts.tiles.DefinitionsFactoryConfig.debugLevel
Use commons-logging mechanism.
org.apache.struts.tiles.DefinitionsFactoryConfig.parserDebugLevel
Use commons-logging mechanism.
org.apache.struts.tiles.DefinitionsUtil.INSTANCES_CONFIG_USER_DEBUG_LEVEL
use DEFINITIONS_CONFIG_USER_DEBUG_LEVEL instead.
org.apache.struts.taglib.html.ErrorsTag.defaultLocale
Use Locale.getDefault() directly.
org.apache.struts.Globals.APPLICATION_KEY
Use MODULE_KEY
org.apache.struts.Globals.FORM_BEANS_KEY
Replaced by collection in ModuleConfig
org.apache.struts.Globals.FORWARDS_KEY
Replaced by collection in ModuleConfig.
org.apache.struts.Globals.MAPPINGS_KEY
Replaced by collection in ModuleConfig
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.INSTANCES_CONFIG_PARAMETER_NAME
use DEFINITIONS_CONFIG_PARAMETER_NAME
org.apache.struts.taglib.html.ImgTag.lowsrc
This is not defined in the HTML 4.01 spec and will be removed in a future version of Struts.
org.apache.struts.taglib.html.JavascriptValidatorTag.defaultLocale
This variable is no longer used.
org.apache.struts.upload.MultipartElement.data
This should never be used.
org.apache.struts.taglib.html.OptionTag.defaultLocale
Use Locale.getDefault() directly.
org.apache.struts.action.RequestProcessor.appConfig
use moduleConfig instead.

Deprecated Methods

org.apache.struts.action.Action.perform(ActionMapping,ActionForm,ServletRequest,ServletResponse)
Use the execute() method instead
org.apache.struts.action.Action.perform(ActionMapping,ActionForm,HttpServletRequest,HttpServletResponse)
Use the execute() method instead
org.apache.struts.action.Action.getResources()
This method can only return the resources for the default module.
org.apache.struts.action.Action.toHex(buffer[])
This method will be removed in a release after Struts 1.1.
org.apache.struts.tiles.ActionComponentServlet.processForward(String,HttpServletRequest,HttpServletResponse)
use doForward instead
org.apache.struts.config.ActionConfig.getApplicationConfig()
org.apache.struts.config.ActionConfig.setApplicationConfig(ModuleConfig)
org.apache.struts.action.ActionMessages.empty()
Use isEmpty instead.
org.apache.struts.action.ActionServlet.findDataSource(String)
Look up data sources directly in servlet context attributes
org.apache.struts.action.ActionServlet.findFormBean(String)
Replaced by ModuleConfig.findFormBeanConfig()
org.apache.struts.action.ActionServlet.findForward(String)
Replaced by ModuleConfig.findForwardConfig()
org.apache.struts.action.ActionServlet.findMapping(String)
Replaced by ModuleConfig.findActionConfig()
org.apache.struts.action.ActionServlet.getDebug()
Configure the logging detail level in your underlying logging implementation
org.apache.struts.action.ActionServlet.getResources()
Actions should call Action.getResources(HttpServletRequest) instead of this method, in order to retrieve the resources for the current module.
org.apache.struts.action.ActionServlet.log(String,int)
Use commons-logging instead.
org.apache.struts.action.ActionServlet.destroyApplications()
replaced by destroyModules()
org.apache.struts.action.ActionServlet.destroyDataSources()
Will no longer be required with module support
org.apache.struts.action.ActionServlet.getApplicationConfig(HttpServletRequest)
org.apache.struts.action.ActionServlet.initApplicationConfig(String,String)
org.apache.struts.action.ActionServlet.initApplicationDataSources(ModuleConfig)
use initModuleDataSources(ModuleConfig)
org.apache.struts.action.ActionServlet.initApplicationPlugIns(ModuleConfig)
org.apache.struts.action.ActionServlet.initApplicationMessageResources(ModuleConfig)
use initModuleMessageResources()
org.apache.struts.action.ActionServlet.initDataSources()
Replaced by initApplicationDataSources() that takes an ModuleConfig argument.
org.apache.struts.action.ActionServlet.defaultControllerConfig(ModuleConfig)
Will be removed in a release after Struts 1.1.
org.apache.struts.action.ActionServlet.defaultFormBeansConfig(ModuleConfig)
Will be removed in a release after Struts 1.1.
org.apache.struts.action.ActionServlet.defaultForwardsConfig(ModuleConfig)
Will be removed in a release after Struts 1.1.
org.apache.struts.action.ActionServlet.defaultMappingsConfig(ModuleConfig)
Will be removed in a release after Struts 1.1.
org.apache.struts.action.ActionServlet.defaultMessageResourcesConfig(ModuleConfig)
Will be removed in a release after Struts 1.1.
org.apache.struts.action.ActionServletWrapper.log(String,int)
Logging should now use the commons logging
org.apache.struts.taglib.template.util.Content.getContent()
Use Tiles instead.
org.apache.struts.taglib.template.util.Content.isDirect()
Use Tiles instead.
org.apache.struts.taglib.template.util.Content.toString()
Use Tiles instead.
org.apache.struts.taglib.template.util.ContentMap.put(String,Content)
Use Tiles instead.
org.apache.struts.taglib.template.util.ContentMap.get(String)
Use Tiles instead.
org.apache.struts.taglib.template.util.ContentMapStack.getStack(PageContext)
Use Tiles instead.
org.apache.struts.taglib.template.util.ContentMapStack.peek(PageContext)
Use Tiles instead.
org.apache.struts.taglib.template.util.ContentMapStack.push(PageContext,ContentMap)
Use Tiles instead.
org.apache.struts.taglib.template.util.ContentMapStack.pop(PageContext)
Use Tiles instead.
org.apache.struts.tiles.DefinitionsFactoryConfig.getDebugLevel()
Use commons-logging mechanism.
org.apache.struts.tiles.DefinitionsFactoryConfig.setDebugLevel(int)
Use commons-logging mechanism.
org.apache.struts.tiles.DefinitionsFactoryConfig.getParserDebugLevel()
Use commons-logging mechanism.
org.apache.struts.tiles.DefinitionsFactoryConfig.setParserDebugLevel(int)
Use commons-logging mechanism.
org.apache.struts.tiles.DefinitionsUtil.setUserDebugLevel(int)
Use commons-logging package instead.
org.apache.struts.tiles.DefinitionsUtil.initUserDebugLevel(ServletConfig)
Use commons-logging package instead.
org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(ServletContext,Map,String)
Use createDefinitionsFactory(ServletContext servletContext, ServletConfig servletConfig)
org.apache.struts.tiles.DefinitionsUtil.createDefinitionFactoryInstance(String)
No direct replacement.
org.apache.struts.tiles.DefinitionsUtil.setDefinitionsFactory(ComponentDefinitionsFactory,ServletContext)
since 20020708.
org.apache.struts.tiles.DefinitionsUtil.getDefinition(String,PageContext)
org.apache.struts.tiles.DefinitionsUtil.getDefinitionsFactory(ServletContext)
org.apache.struts.tiles.DefinitionsUtil.makeDefinitionsFactoryAccessible(DefinitionsFactory,ServletContext)
org.apache.struts.validator.DynaValidatorForm.log(String)
Use common-logging, or other logging implementation to log debug messages.
org.apache.struts.validator.DynaValidatorForm.log(String,Throwable)
Use common-logging, or other logging implementation to log debug messages.
org.apache.struts.validator.FieldChecks.validateRange(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
As of Struts 1.1, replaced by validateIntRange(java.lang.Object,org.apache.commons.validator.ValidatorAction,org.apache.commons.validator.Field,org.apache.struts.action.ActionErrors,javax.servlet.http.HttpServletRequest)
org.apache.struts.config.FormBeanConfig.setDynamic(boolean)
The value to be returned by getDynamic() is now computed automatically in setType()
org.apache.struts.taglib.template.GetTag.setFlush(boolean)
Use Tiles instead.
org.apache.struts.taglib.template.GetTag.setName(String)
Use Tiles instead.
org.apache.struts.taglib.template.GetTag.setRole(String)
Use Tiles instead.
org.apache.struts.taglib.template.GetTag.getFlush()
Use Tiles instead.
org.apache.struts.taglib.template.GetTag.getName()
Use Tiles instead.
org.apache.struts.taglib.template.GetTag.getRole()
Use Tiles instead.
org.apache.struts.taglib.template.GetTag.doStartTag()
Use Tiles instead.
org.apache.struts.taglib.template.GetTag.release()
Use Tiles instead.
org.apache.struts.taglib.template.GetTag.saveException(Throwable)
Use Tiles instead.
org.apache.struts.taglib.html.HtmlTag.currentLocale()
Use getCurrentLocale instead because it makes the display logic easier.
org.apache.struts.taglib.html.ImageTag.getAlign()
Align attribute is deprecated in HTML 4.x.
org.apache.struts.taglib.html.ImageTag.setAlign(String)
Align attribute is deprecated in HTML 4.x.
org.apache.struts.taglib.html.ImgTag.getLowsrc()
This is not defined in the HTML 4.01 spec and will be removed in a future version of Struts.
org.apache.struts.taglib.bean.IncludeTag.setName(String)
use setPage(String) instead
org.apache.struts.taglib.template.InsertTag.setTemplate(String)
Use Tiles instead.
org.apache.struts.taglib.template.InsertTag.getTemplate()
Use Tiles instead.
org.apache.struts.taglib.template.InsertTag.getContentMap()
Use Tiles instead.
org.apache.struts.taglib.template.InsertTag.doStartTag()
Use Tiles instead.
org.apache.struts.taglib.template.InsertTag.doEndTag()
Use Tiles instead.
org.apache.struts.taglib.template.InsertTag.put(String,Content)
Use Tiles instead.
org.apache.struts.taglib.template.InsertTag.release()
Use Tiles instead.
org.apache.struts.taglib.template.InsertTag.saveException(Throwable)
Use Tiles instead.
org.apache.struts.taglib.tiles.InsertTag.setInstance(String)
Use setDefinition() instead.
org.apache.struts.upload.MultipartElement.getData()
Use the getFile method to get a File representing the data for this element
org.apache.struts.upload.MultipartElement.setData(byte[])
Use the setFile method to set the file that represents the data of this element
org.apache.struts.taglib.template.PutTag.setName(String)
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.setRole(String)
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.setContent(String)
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.setDirect(String)
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.getName()
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.getRole()
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.getContent()
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.getDirect()
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.doEndTag()
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.release()
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.getActualContent()
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.hasBody()
Use Tiles instead.
org.apache.struts.taglib.template.PutTag.getAncestor(String)
Use Tiles instead.
org.apache.struts.action.RequestProcessor.processActionForward(HttpServletRequest,HttpServletResponse,ActionForward)
Use processForwardConfig() instead.
org.apache.struts.action.RequestProcessor.getDebug()
Configure the logging detail level in your underlying logging implementation
org.apache.struts.util.RequestUtils.computeURL(PageContext,String,String,String,Map,String,boolean)
To be removed in Version 1.3.
org.apache.struts.util.RequestUtils.selectApplication(String,HttpServletRequest,ServletContext)
org.apache.struts.util.RequestUtils.selectApplication(HttpServletRequest,ServletContext)
org.apache.struts.util.RequestUtils.getApplicationPrefixes(ServletContext)
Use getModulePrefixes(ServletContext) instead.
org.apache.struts.validator.Resources.getValidatorResources(ServletContext)
In Struts 1.1 This method can only return the resources for the default module.
org.apache.struts.validator.Resources.getMessageResources(ServletContext)
This method can only return the resources for the default module.
org.apache.struts.util.StrutsValidator.validateRequired(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateMask(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateByte(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateShort(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateInteger(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateLong(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateFloat(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateDouble(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateDate(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateRange(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateCreditCard(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
As of Struts 1.1, replaced by FieldChecks.validateCreditCard(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest) Translated to Java by Ted Husted (husted@apache.org ).
    Reference Sean M.
org.apache.struts.util.StrutsValidator.validateEmail(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
As of Struts 1.1, replaced by FieldChecks.validateEmail(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest) Based on a script by Sandeep V.
org.apache.struts.util.StrutsValidator.validateMaxLength(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidator.validateMinLength(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)
org.apache.struts.util.StrutsValidatorUtil.getValidatorResources(ServletContext)
In Struts 1.1 This method can only return the resources for the default module.
org.apache.struts.util.StrutsValidatorUtil.getMessageResources(ServletContext)
This method can only return the resources for the default module.
org.apache.struts.util.StrutsValidatorUtil.getMessage(MessageResources,Locale,ValidatorAction,Field)
org.apache.struts.util.StrutsValidatorUtil.getActionError(HttpServletRequest,ValidatorAction,Field)
org.apache.struts.util.StrutsValidatorUtil.getArgs(String,MessageResources,Locale,Field)
org.apache.struts.util.StrutsValidatorUtil.initValidator(String,Object,ServletContext,HttpServletRequest,ActionErrors,int)
org.apache.struts.tiles.actions.TilesAction.perform(ComponentContext,ActionMapping,ActionForm,HttpServletRequest,HttpServletResponse)
Use the execute() method instead
org.apache.struts.tiles.TilesUtil.applicationClass(String)
Use RequestUtils.applicationClass() instead.
org.apache.struts.tiles.TilesUtilImpl.applicationClass(String)
Use RequestUtils.applicationClass() instead.
org.apache.struts.tiles.TilesUtilStrutsImpl.applicationClass(String)
Use RequestUtils.applicationClass() instead.
org.apache.struts.validator.ValidatorForm.log(String)
Use common-logging to log debug messages.
org.apache.struts.validator.ValidatorForm.log(String,Throwable)
Use common-logging to log debug messages.
org.apache.struts.tiles.xmlDefinition.XmlParser.setDetailLevel(int)
Use the commons-logging to set digester debug level.

Deprecated Constructors

org.apache.struts.config.ApplicationConfig.ApplicationConfig(ModuleConfigImpl)
Only used while we are deprecating ApplicationConfig to insure maximum compatability.
org.apache.struts.tiles.ComponentContext.ComponentContext(ComponentDefinition)
Use ComponentContext(Map attributes) instead.
org.apache.struts.taglib.template.util.Content.Content(String,String)
Use Tiles instead.
org.apache.struts.taglib.template.util.ContentMap.ContentMap()
Use Tiles instead.
org.apache.struts.config.impl.ModuleConfigImpl.ModuleConfigImpl(ModuleConfigImpl)
Only used while we are deprecating ApplicationConfig to insure maximum compatability.
org.apache.struts.upload.MultipartElement.MultipartElement(String,String,String,byte[])
Use the constructor that takes an File as an argument as opposed to a byte array argument, which can cause memory problems.

Copyright B) 2000-2005 - Apache Software Foundation