validation.xml

<?xml version="1.0" encoding="UTF-8"?>

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

<form-validation>
 <formset>
  <form name="loginForm">      
  <field property="login_text1" depends="required">
  <arg0 key = "message.t1"  resource="true"/></field>
  <field property="login_text2" depends="required">
  <arg0 key = " message.t2"  resource="true"/></field>
  </form>
  <form name="updateForm">
            <field
                property="sakuban"
                depends="required">
                <arg0 key="label.sakuban" resource="true"/>
            </field>
          
            <field
                property="chuban"
                depends="required">
                <arg0 key="label.chuban" resource="true"/>
            </field>
            <field
                property="kouban"
                depends="required">
                <arg0 key="label.kouban" resource="true"/>
            </field>
            <field
                property="nintei"
                depends="required">
                <arg0 key="label.nintei" resource="true"/>
            </field>
            
        </form>
 </formset>
</form-validation> 

你可能感兴趣的:(validation.xml)