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

Uses in package org.apache.struts.taglib

Methods with return type org.apache.struts.action.ActionMessages

ActionMessages
TagUtils.getActionMessages(PageContext pageContext, String paramName)
Retrieves the value from request scope and if it isn't already an ActionMessages, some classes are converted to one.

Uses in package org.apache.struts.validator

Methods with parameter type org.apache.struts.action.ActionMessages

Validator
Resources.initValidator(String key, Object bean, ServletContext application, HttpServletRequest request, ActionMessages errors, int page)
Initialize the Validator to perform validation.
Object
FieldChecks.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.
Object
FieldChecks.validateCreditCard(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request)
Checks if the field is a valid credit card number.
Object
FieldChecks.validateDate(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request)
Checks if the field is a valid date.
Object
FieldChecks.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.
boolean
FieldChecks.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).
boolean
FieldChecks.validateEmail(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request)
Checks if a field has a valid e-mail address.
Object
FieldChecks.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.
boolean
FieldChecks.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).
boolean
FieldChecks.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).
Object
FieldChecks.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.
Object
FieldChecks.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.
boolean
FieldChecks.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.
boolean
FieldChecks.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.
boolean
FieldChecks.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.
boolean
FieldChecks.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.
boolean
FieldChecks.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.
Object
FieldChecks.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.
boolean
FieldChecks.validateUrl(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request)
Checks if a field has a valid url.

Uses in package org.apache.struts.config

Methods with return type org.apache.struts.action.ActionMessages

ActionMessages
The org.apache.struts.action.ActionFormBeans collection for this application.
ActionMessages
The org.apache.struts.action.ActionFormBeans collection for this application.

Uses in package org.apache.struts.action

Classes derived from org.apache.struts.action.ActionMessages

class
A class that encapsulates the error messages being reported by the validate() method of an ActionForm.

Constructors with parameter type org.apache.struts.action.ActionMessages

Create an ActionMessages object initialized with the given messages.

Methods with parameter type org.apache.struts.action.ActionMessages

void
Adds the messages from the given ActionMessages object to this set of messages.
void
Action.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.
void
Action.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.
void
Action.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.
void
Action.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.
void
Action.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.
void
Action.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.

Methods with return type org.apache.struts.action.ActionMessages

ActionMessages
Action.getErrors(HttpServletRequest request)
Retrieves any existing errors placed in the request by previous actions.
ActionMessages
Action.getMessages(HttpServletRequest request)
Retrieves any existing messages placed in the request by previous actions.

Uses in package org.apache.struts.util

Methods with return type org.apache.struts.action.ActionMessages

ActionMessages
RequestUtils.getActionMessages(PageContext pageContext, String paramName)
Retrieves the value from request scope and if it isn't already an ActionMessages some classes are converted to one.

Uses in package org.apache.struts.validator.validwhen

Methods with parameter type org.apache.struts.action.ActionMessages

boolean
ValidWhen.validateValidWhen(Object bean, ValidatorAction va, Field field, ActionMessages errors, Validator validator, HttpServletRequest request)
Checks if the field matches the boolean expression specified in test parameter.

Copyright B) 2000-2007 - The Apache Software Foundation