The short-circuit attribute was introduced in the XWork Validator 1.0.2 release. If the framework complains that the "Attribute 'short-circuit' must be declared for element type 'field-validator'", update the configuration file's DTD reference.
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group// "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
例子中红色的部分不是1.0.2造成的这个问题。
自带的例子中没有short-circuit 例子中 有可能是 所以要注意选择实际例子使用。
<!DOCTYPE validators PUBLIC
"-//OpenSymphony Group//
"http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">