A : form验证 extends Validateform 重写validate()实现验证B : 框架验证 validate-rules.xml --> Struts自己的定义验证规则 validate.xml -- >form表单哪个字段对应的哪个需要什么样的验证