首页 >> 文摘 >> AJAX

Struts2 +Ajax 学习笔记 (4) --编写Form验证

采集日期:2008-4-23作者:bearfig(注:本数据由系统自动采集,内容与BHCODE无关)
1 验证文件名必须和类名保持一致,后面增加_validation.xml.对于Logon,那么验证文件名应该为: Logon_validation.xml,位置与Logon.java在同一个目录下,区分大小写。To open the Logon form, the Welcome page refers to Logon_input.Since "input" is on a special list of methods that bypass validation, the validation framework is not invoked.Finding a Logon-validation.xml file, the framework creates a validation object for the class, based on the XML document.
本周推荐
MORE
热点关注
MORE