Uses of Class
org.apache.struts.util.MessageResources
Packages that use MessageResources
Package
Description
The action package is the core of the struts framework,
providing the "Controller" aspect of a MVC model.
This package provides objects that encapsulate access to
the request and session-scoped resources to service
command processing.
The "config" package contains configuration objects that correspond to
elements that may be specified in the
struts-config.xml
module configuration file.The Utilities package provides a variety of families of classes,
to solve problems that are commonly encountered in building web applications.
The validator package provides a series of classes to validate
ActionForm
type of input.-
Uses of MessageResources in org.apache.struts.action
Fields in org.apache.struts.action declared as MessageResourcesModifier and TypeFieldDescriptionprotected MessageResources
ActionServlet.internal
The resources object for our internal resources.Methods in org.apache.struts.action that return MessageResourcesModifier and TypeMethodDescriptionActionServlet.getInternal()
Return theMessageResources
instance containing our internal message strings.protected MessageResources
RequestProcessor.getInternal()
Return theMessageResources
instance containing our internal message strings.protected MessageResources
Action.getResources
(HttpServletRequest request) Return the default message resources for the current module.protected MessageResources
Action.getResources
(HttpServletRequest request, String key) Return the specified message resources for the current module. -
Uses of MessageResources in org.apache.struts.chain.contexts
Methods in org.apache.struts.chain.contexts that return MessageResourcesModifier and TypeMethodDescriptionActionContext.getMessageResources()
Return the default message resources for the current module.ActionContext.getMessageResources
(String key) Return the specified message resources for the current module.ActionContextBase.getMessageResources()
ActionContextBase.getMessageResources
(String key) ServletActionContext.getMessageResources()
ServletActionContext.getMessageResources
(String key) Methods in org.apache.struts.chain.contexts with parameters of type MessageResourcesModifier and TypeMethodDescriptionvoid
ActionContext.setMessageResources
(MessageResources resources) Set the default message resources for the current module.void
ActionContextBase.setMessageResources
(MessageResources messageResources) void
ServletActionContext.setMessageResources
(String key, MessageResources resources) Store the message resources for the current module under the given request attribute key.void
ServletActionContext.setMessageResources
(MessageResources resources) -
Uses of MessageResources in org.apache.struts.config
Methods in org.apache.struts.config that return MessageResourcesModifier and TypeMethodDescriptionConfigHelper.getMessageResources()
The application resources for this application.ConfigHelperInterface.getMessageResources()
The application resources for this application. -
Uses of MessageResources in org.apache.struts.util
Subclasses of MessageResources in org.apache.struts.utilModifier and TypeClassDescriptionclass
Concrete subclass ofMessageResources
that reads message keys and corresponding strings from named property resources in a similar manner (see modes below) thatjava.util.PropertyResourceBundle
does.Fields in org.apache.struts.util declared as MessageResourcesModifier and TypeFieldDescriptionprotected static MessageResources
ResponseUtils.messages
The message resources for this package.Methods in org.apache.struts.util that return MessageResourcesModifier and TypeMethodDescriptionabstract MessageResources
MessageResourcesFactory.createResources
(String config) Create and return a newly instansiatedMessageResources
.PropertyMessageResourcesFactory.createResources
(String config) Create and return a newly instansiatedMessageResources
.static MessageResources
MessageResources.getMessageResources
(String config) Create and return an instance ofMessageResources
for the created by the defaultMessageResourcesFactory
. -
Uses of MessageResources in org.apache.struts.validator
Methods in org.apache.struts.validator that return MessageResourcesModifier and TypeMethodDescriptionstatic MessageResources
Resources.getMessageResources
(HttpServletRequest request) RetrieveMessageResources
for the module.static MessageResources
Resources.getMessageResources
(ServletContext application, HttpServletRequest request, String bundle) RetrieveMessageResources
for the module and bundle.Methods in org.apache.struts.validator with parameters of type MessageResourcesModifier and TypeMethodDescriptionstatic String[]
Resources.getArgs
(String actionName, MessageResources messages, Locale locale, Field field) Gets the message arguments based on the currentValidatorAction
andField
.static String
Resources.getMessage
(ServletContext application, HttpServletRequest request, MessageResources defaultMessages, Locale locale, ValidatorAction va, Field field) Gets theLocale
sensitive value based on the key passed in.static String
Resources.getMessage
(MessageResources messages, Locale locale, String key) Gets theLocale
sensitive value based on the key passed in.static String
Resources.getMessage
(MessageResources messages, Locale locale, ValidatorAction va, Field field) Gets the locale sensitive message based on theValidatorAction
message and theField
's arg objects.