<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">

<validators>

    <field name="username">
        <field-validator type="requiredstring">
            <message>用户名不能为空</message>
        </field-validator>

        <field-validator type="stringlength">
            <param name="minLength">1</param>
            <param name="maxLength">20</param>
            <message >用户名长度需要在${minLength} 和 ${maxLength}之间</message>
        </field-validator>

    </field> 

    <field name="password">
        <field-validator type="requiredstring">
            <message> 密码不能为空</message>
        </field-validator>

        <field-validator type="stringlength">
            <param name="minLength">1</param>
            <param name="maxLength">20</param>
            <message >密码长度需要再 ${minLength} 和 ${maxLength}之间</message>
        </field-validator>

    </field>

     

</validators>


