Deprecated API

Contents

Deprecated Interfaces

ComponentDefinitionsFactory
Use DefinitionsFactory instead.

Deprecated Classes

ActionError
Please use ActionMessage instead, deprecated since 1.2.0.
AttributeToScopeTag
Is it still in use ?
BufferedMultipartInputStream
Use the Commons FileUpload based multipart handler instead.
ContentLengthExceededException
Use the Commons FileUpload based multipart handler instead.
DefinitionsUtil
DiskFile
Use the Commons FileUpload based multipart handler instead.
DiskMultipartRequestHandler
Use the Commons FileUpload based multipart handler instead.
MaxLengthExceededException
Use the Commons FileUpload based multipart handler instead.
MultipartBoundaryInputStream
Use the Commons FileUpload based multipart handler instead.
MultipartElement
Use the Commons FileUpload based multipart handler instead.
MultipartIterator
Use the Commons FileUpload based multipart handler instead.
MultipartValueStream
Use the Commons FileUpload based multipart handler instead.

Deprecated Fields

org.apache.struts.action.Action.defaultLocale
Use Locale.getDefault directly.
org.apache.struts.action.ActionErrors.GLOBAL_ERROR
Use ActionMessages.GLOBAL_MESSAGE instead.
org.apache.struts.taglib.html.BaseHandlerTag.defaultLocale
Use Locale.getDefault() directly.
org.apache.struts.tiles.DefinitionsFactoryConfig.PARSER_DETAILS_PARAMETER_NAME
This will be removed in a release after Struts 1.2.
org.apache.struts.tiles.DefinitionsFactoryConfig.TILES_DETAILS_PARAMETER_NAME
This will be removed in a release after Struts 1.2.
org.apache.struts.tiles.DefinitionsUtil.userDebugLevel
This will be removed in a release after Struts 1.2.
org.apache.struts.tiles.DefinitionsUtil.NO_DEBUG
This will be removed in a release after Struts 1.2.
org.apache.struts.taglib.html.ErrorsTag.defaultLocale
Use Locale.getDefault() directly.
org.apache.struts.taglib.html.ErrorsTag.lineEnd
No longer used.
org.apache.struts.config.ForwardConfig.contextRelative
Use module property instead; will be removed in a release following 1.2.0.
org.apache.struts.taglib.html.HtmlTag.locale
This will be removed after Struts 1.2.
org.apache.struts.taglib.html.ImgTag.contextRelative
Use module property instead; will be removed in a release after 1.2.0.
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.tiles.InsertTag.ROLE_DELIMITER
This will be removed in a release after Struts 1.2.
org.apache.struts.taglib.html.JavascriptValidatorTag.defaultLocale
This variable is no longer used.
org.apache.struts.taglib.bean.MessageTag.defaultLocale
This will be removed after Struts 1.2.
org.apache.struts.util.ModuleException.error
Use message instead.
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.validator.Resources.SERVLET_CONTEXT_KEY
This will be removed after Struts 1.2
org.apache.struts.validator.Resources.HTTP_SERVLET_REQUEST_KEY
This will be removed after Struts 1.2
org.apache.struts.validator.Resources.ACTION_ERRORS_KEY
This will be removed after Struts 1.2

Deprecated Methods

org.apache.struts.action.Action.saveErrors(HttpServletRequest,ActionErrors)
Use saveErrors(HttpServletRequest, ActionMessages) instead.
org.apache.struts.action.ActionErrors.add(String,ActionError)
Use add(String, ActionMessage) instead.
org.apache.struts.tiles.Controller.perform(ComponentContext,HttpServletRequest,HttpServletResponse,ServletContext)
Use execute() instead.
org.apache.struts.tiles.ControllerSupport.perform(ComponentContext,HttpServletRequest,HttpServletResponse,ServletContext)
Use execute() instead.
org.apache.struts.tiles.actions.DefinitionDispatcherAction.printError(HttpServletResponse,String)
This will be removed after Struts 1.2.
org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(ServletContext,Map,String)
Use createDefinitionsFactory(ServletContext servletContext, ServletConfig servletConfig)
org.apache.struts.tiles.DefinitionsUtil.getDefinitionsFactory(ServletContext)
org.apache.struts.action.DynaActionFormClass.clear()
No longer need to Clear our cache of DynaActionFormClass instances.
org.apache.struts.action.ExceptionHandler.storeException(HttpServletRequest,String,ActionError,ActionForward,String)
Use storeException(HttpServletRequest, String, ActionMessage, ActionForward, String) instead.
org.apache.struts.config.FormBeanConfig.setDynamic(boolean)
The value to be returned by getDynamic() is now computed automatically in setType()
org.apache.struts.config.ForwardConfig.getContextRelative()
Use module property instead; will be removed in a release following 1.2.0.
org.apache.struts.config.ForwardConfig.setContextRelative(boolean)
Use module property instead; will be removed in a release following 1.2.0.
org.apache.struts.taglib.html.HtmlTag.getLocale()
This will be removed after Struts 1.2.
org.apache.struts.taglib.html.HtmlTag.setLocale(boolean)
This will be removed after Struts 1.2.
org.apache.struts.taglib.html.HtmlTag.getCurrentLocale()
This will be removed after Struts 1.2.
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.getContextRelative()
Use module property instead; will be removed in a release after 1.2.0.
org.apache.struts.taglib.html.ImgTag.setContextRelative(String)
Use module property instead; will be removed in a release after 1.2.0.
org.apache.struts.taglib.html.ImgTag.isContextRelativeSet()
Use module property instead; will be removed in a release after 1.2.0.
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.tiles.InsertTag.InsertHandler.processException(Throwable,String)
This method will be removed in a release after Struts 1.2.
org.apache.struts.util.ModuleException.getError()
Use getActionMessage() instead.
org.apache.struts.action.RequestProcessor.log(String)
Use commons-logging instead.
org.apache.struts.action.RequestProcessor.log(String,Throwable)
Use commons-logging instead.
org.apache.struts.util.RequestUtils.selectModule(String,HttpServletRequest,ServletContext)
org.apache.struts.util.RequestUtils.selectModule(HttpServletRequest,ServletContext)
org.apache.struts.util.RequestUtils.getModuleName(HttpServletRequest,ServletContext)
org.apache.struts.util.RequestUtils.getModuleName(String,ServletContext)
org.apache.struts.util.RequestUtils.getRequestModuleConfig(HttpServletRequest)
org.apache.struts.util.RequestUtils.getModuleConfig(HttpServletRequest,ServletContext)
org.apache.struts.util.RequestUtils.getModulePrefixes(ServletContext)
org.apache.struts.util.RequestUtils.computeParameters(PageContext,String,String,String,String,String,String,String,boolean)
This will be removed after Struts 1.2.
org.apache.struts.util.RequestUtils.computeURL(PageContext,String,String,String,Map,String,boolean)
This will be removed after Struts 1.2 Use computeURL(PageContext,String,String,String,String,Map,String,boolean) instead.
org.apache.struts.util.RequestUtils.computeURL(PageContext,String,String,String,String,Map,String,boolean)
This will be removed after Struts 1.2.
org.apache.struts.util.RequestUtils.computeURL(PageContext,String,String,String,String,Map,String,boolean,boolean)
This will be removed after Struts 1.2.
org.apache.struts.util.RequestUtils.getActionMappingName(String)
This will be removed after Struts 1.2.
org.apache.struts.util.RequestUtils.getActionMappingURL(String,PageContext)
This will be removed after Struts 1.2.
org.apache.struts.util.RequestUtils.lookup(PageContext,String,String)
This will be removed after Struts 1.2.
org.apache.struts.util.RequestUtils.getScope(String)
This will be removed after Struts 1.2.
org.apache.struts.util.RequestUtils.lookup(PageContext,String,String,String)
This will be removed after Struts 1.2.
org.apache.struts.util.RequestUtils.retrieveUserLocale(PageContext,String)
This will be removed after Struts 1.2.
org.apache.struts.util.RequestUtils.message(PageContext,String,String,String)
org.apache.struts.util.RequestUtils.message(PageContext,String,String,String,args[])
Use org.apache.struts.taglib.TagUtils.message(PageContext,String,String,String,Object[]) instead.
org.apache.struts.util.RequestUtils.present(PageContext,String,String,String)
org.apache.struts.util.RequestUtils.pageURL(HttpServletRequest,String)
Use org.apache.struts.taglib.TagUtils.pageURL(HttpServletRequest request, String page, ModuleConfig moduleConfig) instead.
org.apache.struts.util.RequestUtils.saveException(PageContext,Throwable)
org.apache.struts.util.RequestUtils.getModuleConfig(PageContext)
org.apache.struts.util.RequestUtils.getActionMessages(PageContext,String)
org.apache.struts.util.RequestUtils.getActionErrors(PageContext,String)
org.apache.struts.util.RequestUtils.encodeURL(String)
org.apache.struts.util.RequestUtils.isXhtml(PageContext)
org.apache.struts.validator.Resources.getLocale(HttpServletRequest)
Use RequestUtils.getUserLocale() instead.
org.apache.struts.validator.Resources.getActionError(HttpServletRequest,ValidatorAction,Field)
Use getActionMessage() instead.
org.apache.struts.util.ResponseUtils.write(PageContext,String)
use TagUtils.write() method instead.
org.apache.struts.util.ResponseUtils.writePrevious(PageContext,String)
use TagUtils.writePrevious() method instead.
org.apache.struts.taglib.TagUtils.getActionErrors(PageContext,String)
Use getActionMessages() instead.
org.apache.struts.taglib.tiles.util.TagUtils.getProperty(Object,String)
Use PropertyUtils.getProperty() directly.

Deprecated Constructors

org.apache.struts.action.ActionForward.ActionForward(String,String,boolean,boolean)
Use module rather than contextRelative
org.apache.struts.config.ForwardConfig.ForwardConfig(String,String,boolean,boolean)
Use module rather than contextRelative

Copyright B) 2000-2007 - The Apache Software Foundation