<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--
Taken from Core Servlets and JavaServer Pages Volume II
from Prentice Hall and Sun Microsystems Press,
http://volume2.coreservlets.com/.
(C) 2007 Marty Hall, Larry Brown, and Yaakov Chaikin;
may be freely used or adapted.
-->
<!DOCTYPE form-validation PUBLIC
   "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.2.0//EN"
   "http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd">
<form-validation>
  <formset>
    <form name="orderFormBean">
      <field property="firstName"
             depends="required">
        <arg key="inputForm.firstName"/>
      </field>
      <field property="lastName"
             depends="required">
        <arg key="inputForm.lastName"/>
      </field>
      <field property="address"
             depends="required">
        <arg key="inputForm.address"/>
      </field>
      <field property="zipCode"
             depends="required,mask">
        <arg key="inputForm.zipCode"/>
        <var>
          <var-name>mask</var-name>
          <var-value>^\d{5}\d*$</var-value>
        </var>
      </field>
      <field property="creditCardNumber"
             depends="required,creditCard">
        <arg key="inputForm.creditCardNumber"/>
      </field>
      <field property="email"
             depends="required,email">
        <arg key="inputForm.email"/>
      </field>
    </form>
  </formset>
</form-validation>