<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE form-validation PUBLIC
          "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
          "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">

<!--
    Validation Rules for the Struts Example Web Application

    $Id: validation.xml,v 1.2 2005/01/20 01:42:21 ate Exp $
-->

<form-validation>


    <!-- ========== Default Language Form Definitions ===================== -->
    <formset>

        <form name="LogonForm">

            <field property="username"
                    depends="required">
                <arg0   key="prompt.username"/>
            </field>

            <field property="password"
                    depends="required, minlength,maxlength">
                <arg   key="prompt.password"/>
                <arg   key="${var:minlength}" name="minlength"
                   resource="false"/>
                <arg   key="${var:maxlength}" name="maxlength"
                   resource="false"/>
                <var>
                    <var-name>maxlength</var-name>
                    <var-value>16</var-value>
                </var>
                <var>
                    <var-name>minlength</var-name>
                    <var-value>3</var-value>
                </var>
            </field>

        </form>


        <form name="RegistrationForm">

            <field property="fromAddress"
                    depends="required,email">
                <arg   key="prompt.fromAddress"/>
            </field>

            <field property="fullName"
                    depends="required">
              <arg     key="prompt.fullName"/>
            </field>

            <field property="replyToAddress"
                    depends="email">
                <arg   key="prompt.replyToAddress"/>
            </field>

            <field property="username"
                    depends="required">
              <arg     key="prompt.username"/>
            </field>

        </form>


    </formset>


</form-validation>
