Uses of Class
org.apache.struts.action.ActionMessages

Packages that use ActionMessages
org.apache.struts.action The action package is the core of the struts framework, providing the "Controller" aspect of a MVC model. 
org.apache.struts.config The "config" package contains configuration objects that correspond to elements that may be specified in the struts-config.xml module configuration file. 
org.apache.struts.taglib   
org.apache.struts.util The Utilities package provides a variety of families of classes, to solve problems that are commonly encountered in building web applications. 
org.apache.struts.validator The validator package provides a series of classes to validate ActionForm type of input. 
org.apache.struts.validator.validwhen   
 

Uses of ActionMessages in org.apache.struts.action
 

Subclasses of ActionMessages in org.apache.struts.action
 class ActionErrors
          A class that encapsulates the error messages being reported by the validate() method of an ActionForm.
 

Methods in org.apache.struts.action that return ActionMessages
protected  ActionMessages Action.getErrors(javax.servlet.http.HttpServletRequest request)
          Retrieves any existing errors placed in the request by previous actions.
protected  ActionMessages Action.getMessages(javax.servlet.http.HttpServletRequest request)
          Retrieves any existing messages placed in the request by previous actions.
 

Methods in org.apache.struts.action with parameters of type ActionMessages
protected  void Action.addMessages(javax.servlet.http.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  void Action.addErrors(javax.servlet.http.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  void Action.saveErrors(javax.servlet.http.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  void Action.saveMessages(javax.servlet.http.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  void Action.saveMessages(javax.servlet.http.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.
protected  void Action.saveErrors(javax.servlet.http.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.
 void ActionMessages.add(ActionMessages messages)
          Adds the messages from the given ActionMessages object to this set of messages.
 

Constructors in org.apache.struts.action with parameters of type ActionMessages
ActionMessages(ActionMessages messages)
          Create an ActionMessages object initialized with the given messages.
ActionMessages.ActionMessageItem(java.util.List list, int iOrder, java.lang.String property)
           
 

Uses of ActionMessages in org.apache.struts.config
 

Methods in org.apache.struts.config that return ActionMessages
 ActionMessages ConfigHelperInterface.getActionMessages()
          The org.apache.struts.action.ActionFormBeans collection for this application.
 ActionMessages ConfigHelper.getActionMessages()
           
 

Uses of ActionMessages in org.apache.struts.taglib
 

Methods in org.apache.struts.taglib that return ActionMessages
 ActionMessages TagUtils.getActionMessages(javax.servlet.jsp.PageContext pageContext, java.lang.String paramName)
          Retrieves the value from request scope and if it isn't already an ActionMessages, some classes are converted to one.
 

Uses of ActionMessages in org.apache.struts.util
 

Methods in org.apache.struts.util that return ActionMessages
static ActionMessages RequestUtils.getActionMessages(javax.servlet.jsp.PageContext pageContext, java.lang.String paramName)
          Deprecated. Use TagUtils.getActionMessages(PageContext,String) instead. This will be removed after Struts 1.2.
 

Uses of ActionMessages in org.apache.struts.validator
 

Methods in org.apache.struts.validator with parameters of type ActionMessages
static boolean FieldChecks.validateRequired(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field isn't null and length of the field is greater than zero not including whitespace.
static boolean FieldChecks.validateRequiredIf(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field isn't null based on the values of other fields.
static boolean FieldChecks.validateMask(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field matches the regular expression in the field's mask attribute.
static java.lang.Object FieldChecks.validateByte(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field can safely be converted to a byte primitive.
static java.lang.Object FieldChecks.validateShort(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field can safely be converted to a short primitive.
static java.lang.Object FieldChecks.validateInteger(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field can safely be converted to an int primitive.
static java.lang.Object FieldChecks.validateLong(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field can safely be converted to a long primitive.
static java.lang.Object FieldChecks.validateFloat(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field can safely be converted to a float primitive.
static java.lang.Object FieldChecks.validateDouble(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field can safely be converted to a double primitive.
static java.lang.Object FieldChecks.validateDate(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field is a valid date.
static boolean FieldChecks.validateIntRange(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if a fields value is within a range (min & max specified in the vars attribute).
static boolean FieldChecks.validateDoubleRange(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if a fields value is within a range (min & max specified in the vars attribute).
static boolean FieldChecks.validateFloatRange(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if a fields value is within a range (min & max specified in the vars attribute).
static java.lang.Object FieldChecks.validateCreditCard(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field is a valid credit card number.
static boolean FieldChecks.validateEmail(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if a field has a valid e-mail address.
static boolean FieldChecks.validateMaxLength(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field's length is less than or equal to the maximum value.
static boolean FieldChecks.validateMinLength(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field's length is greater than or equal to the minimum value.
static boolean FieldChecks.validateUrl(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if a field has a valid url.
static org.apache.commons.validator.Validator Resources.initValidator(java.lang.String key, java.lang.Object bean, javax.servlet.ServletContext application, javax.servlet.http.HttpServletRequest request, ActionMessages errors, int page)
          Initialize the Validator to perform validation.
 

Uses of ActionMessages in org.apache.struts.validator.validwhen
 

Methods in org.apache.struts.validator.validwhen with parameters of type ActionMessages
static boolean ValidWhen.validateValidWhen(java.lang.Object bean, org.apache.commons.validator.ValidatorAction va, org.apache.commons.validator.Field field, ActionMessages errors, org.apache.commons.validator.Validator validator, javax.servlet.http.HttpServletRequest request)
          Checks if the field matches the boolean expression specified in test parameter.
 



Copyright 2000-2006 - The Apache Software Foundation