http://struts.apache.org/struts-doc-1.2.7/userGuide/dev_validator.html
页面中的Designing Complex Validations with validwhen一段就是你要的东西。
但前提是所用的Struts得1.2以上,否则只能使用Javascript。
页面中的Designing Complex Validations with validwhen一段就是你要的东西。
但前提是所用的Struts得1.2以上,否则只能使用Javascript。
http://www.blogjava.net/qiyadeng/articles/17571.html