Uses of Class
org.apache.struts.action.ActionMessages
Packages that use ActionMessages
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 validator package provides a series of classes to validate
ActionForm type of input.Generated classes by antlr to support the
validwhen
validator.-
Uses of ActionMessages in org.apache.struts.action
Subclasses of ActionMessages in org.apache.struts.actionModifier and TypeClassDescriptionclassA class that encapsulates the error messages being reported by thevalidate()method of anActionForm.Methods in org.apache.struts.action that return ActionMessagesModifier and TypeMethodDescriptionprotected ActionMessagesAction.getErrors(HttpServletRequest request) Retrieves any existing errors placed in the request by previous actions.protected ActionMessagesAction.getMessages(HttpServletRequest request) Retrieves any existing messages placed in the request by previous actions.Methods in org.apache.struts.action with parameters of type ActionMessagesModifier and TypeMethodDescriptionvoidActionMessages.add(ActionMessages actionMessages) Adds the messages from the givenActionMessagesobject to this set of messages.protected voidAction.addErrors(HttpServletRequest request, ActionMessages errors) Adds the specified errors keys into the appropriate request attribute for use by the <html:errors> tag, if any messages are required.protected voidAction.addMessages(HttpServletRequest request, ActionMessages messages) Adds the specified messages keys into the appropriate request attribute for use by the <html:messages> tag (if messages="true" is set), if any messages are required.protected voidAction.saveErrors(HttpServletRequest request, ActionMessages errors) Save the specified error messages keys into the appropriate request attribute for use by the <html:errors> tag, if any messages are required.protected voidAction.saveErrors(HttpSession session, ActionMessages errors) Save the specified error messages keys into the appropriate session attribute for use by the <html:messages> tag (if messages="false") or <html:errors>, if any error messages are required.protected voidAction.saveMessages(HttpServletRequest request, ActionMessages messages) Save the specified messages keys into the appropriate request attribute for use by the <html:messages> tag (if messages="true" is set), if any messages are required.protected voidAction.saveMessages(HttpSession session, ActionMessages messages) Save the specified messages keys into the appropriate session attribute for use by the <html:messages> tag (if messages="true" is set), if any messages are required.Constructors in org.apache.struts.action with parameters of type ActionMessagesModifierConstructorDescriptionActionMessages(ActionMessages messages) Create anActionMessagesobject initialized with the given messages. -
Uses of ActionMessages in org.apache.struts.chain.contexts
Methods in org.apache.struts.chain.contexts that return ActionMessagesModifier and TypeMethodDescriptionActionContext.getErrors()Retrieve error messages from an internal cache, creating an empty cache if one is not already present.ActionContextBase.getErrors()ServletActionContext.getErrors()ActionContext.getMessages()Retrieve messages from an internal cache, creating an empty cache if one is not already present.ActionContextBase.getMessages()ServletActionContext.getMessages()Methods in org.apache.struts.chain.contexts with parameters of type ActionMessagesModifier and TypeMethodDescriptionvoidActionContextBase.addActionMessages(String key, ActionMessages messages) Add the given messages to a cache stored in this Context, under key.voidActionContext.addErrors(ActionMessages errors) Append the given errors keys to an internal cache, creating the cache if one is not already present.voidActionContextBase.addErrors(ActionMessages errors) voidServletActionContext.addErrors(ActionMessages errors) voidActionContext.addMessages(ActionMessages messages) Append the given messages keys to an internal cache, creating the cache if one is not already present.voidActionContextBase.addMessages(ActionMessages messages) voidServletActionContext.addMessages(ActionMessages messages) voidActionContextBase.saveActionMessages(String scopeId, String key, ActionMessages messages) Save the givenmessagesinto the map identified by the givenscopeIdunder the givenkey.voidActionContextBase.saveActionMessages(String key, ActionMessages messages) Save the given ActionMessages into the request scope under the given key, clearing the attribute if the messages are empty or null.voidActionContext.saveErrors(ActionMessages errors) Save the given error messages to the internal cache, clearing any previous messages in the cache.voidActionContextBase.saveErrors(ActionMessages errors) voidServletActionContext.saveErrors(ActionMessages errors) voidActionContext.saveMessages(String scope, ActionMessages messages) Save the given messages to the internal cache, clearing any previous messages in the cache, but only for the specified scope.voidActionContext.saveMessages(ActionMessages messages) Save the given messages to the internal cache, clearing any previous messages in the cache.voidActionContextBase.saveMessages(String scope, ActionMessages messages) Adapt a legacy form of SaveMessages to the ActionContext API by storing the ActoinMessages under the default scope.voidActionContextBase.saveMessages(ActionMessages messages) voidServletActionContext.saveMessages(ActionMessages messages) -
Uses of ActionMessages in org.apache.struts.config
Methods in org.apache.struts.config that return ActionMessagesModifier and TypeMethodDescriptionConfigHelper.getActionMessages()ConfigHelperInterface.getActionMessages()Theorg.apache.struts.action.ActionFormBeanscollection for this application. -
Uses of ActionMessages in org.apache.struts.validator
Methods in org.apache.struts.validator with parameters of type ActionMessagesModifier and TypeMethodDescriptionstatic ValidatorResources.initValidator(String key, Object bean, ServletContext application, HttpServletRequest request, ActionMessages errors, int page) Initialize theValidatorto perform validation.static ObjectFieldChecks.validateByte(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a byte primitive.static ObjectFieldChecks.validateByteLocale(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a byte primitive.static ObjectFieldChecks.validateCreditCard(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field is a valid credit card number.static ObjectFieldChecks.validateDate(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field is a valid date.static ObjectFieldChecks.validateDouble(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a double primitive.static ObjectFieldChecks.validateDoubleLocale(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a double primitive.static booleanFieldChecks.validateDoubleRange(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if a fields value is within a range (min & max specified in the vars attribute).static booleanFieldChecks.validateEmail(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if a field has a valid e-mail address.static ObjectFieldChecks.validateFloat(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a float primitive.static ObjectFieldChecks.validateFloatLocale(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a float primitive.static booleanFieldChecks.validateFloatRange(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if a fields value is within a range (min & max specified in the vars attribute).static ObjectFieldChecks.validateInteger(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to an int primitive.static ObjectFieldChecks.validateIntegerLocale(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to an int primitive.static booleanFieldChecks.validateIntRange(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if a fields value is within a range (min & max specified in the vars attribute).static ObjectFieldChecks.validateLong(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a long primitive.static ObjectFieldChecks.validateLongLocale(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a long primitive.static booleanFieldChecks.validateLongRange(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if a fields value is within a range (min & max specified in the vars attribute).static booleanFieldChecks.validateMask(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field matches the regular expression in the field's mask attribute.static booleanFieldChecks.validateMaxLength(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field's length is less than or equal to the maximum value.static booleanFieldChecks.validateMinLength(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field's length is greater than or equal to the minimum value.static booleanFieldChecks.validateRequired(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field isn't null and length of the field is greater than zero not including whitespace.static booleanFieldChecks.validateRequiredIf(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field isn't null based on the values of other fields.static ObjectFieldChecks.validateShort(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a short primitive.static ObjectFieldChecks.validateShortLocale(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field can safely be converted to a short primitive.static booleanFieldChecks.validateUrl(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if a field has a valid url. -
Uses of ActionMessages in org.apache.struts.validator.validwhen
Methods in org.apache.struts.validator.validwhen with parameters of type ActionMessagesModifier and TypeMethodDescriptionstatic booleanValidWhen.validateValidWhen(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request) Checks if the field matches the boolean expression specified intestparameter.