Uses of Class
org.apache.struts.util.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
Modifier and TypeFieldDescriptionprotected MessageResources
ActionServlet.internal
The resources object for our internal resources.Modifier 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
Modifier 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) Modifier 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
Modifier 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
Modifier 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.Modifier and TypeFieldDescriptionprotected static MessageResources
ResponseUtils.messages
The message resources for this package.Modifier 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
Modifier 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.Modifier 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.