CustomValidator (Struts Apps - Cookbook 1.3.10 API)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## examples.validator
Class CustomValidator

    java.lang.Object
      examples.validator.CustomValidator

    public class CustomValidator

extends Object

A custom validator example

Version:
  $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $

Constructor Summary
`CustomValidator()` Constructor for CustomValidator.

Method Summary
`static boolean` | `validateTwoFields(Object bean, ValidatorAction va, Field field, ActionMessages errors, HttpServletRequest request)` Example validator for comparing the equality of two fields http://struts.apache.org/userGuide/dev_validator.html http://www.raibledesigns.com/page/rd/20030226

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CustomValidator

    public CustomValidator()

  Constructor for CustomValidator.

Method Detail

### validateTwoFields

    public static boolean validateTwoFields(Object bean,
                                            ValidatorAction va,
                                            Field field,
                                            ActionMessages errors,
                                            HttpServletRequest request)

  Example validator for comparing the equality of two fields http://struts.apache.org/userGuide/dev_validator.html http://www.raibledesigns.com/page/rd/20030226

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.