This might be a basic question: I'm trying to understand how the Struts validation code below works:
<field property="myField" depends="validwhen, maxlength">
<msg name="validwhen" key="error1.key" />
<msg name="maxlength" key="error2.key"/>
<var>
<var-name>test</var-name>
<var-value> isFieldsShown == "no" </var-value>
</var>
<var>
<var-name>maxlength</var-name>
<var-value>128</var-value>
</var>
</field>
Is it like, first the validwhen rule checked and if it succeeds then the maxlength rule is checked? OR, if the validwhen returns true, then the field is considered valid without going to the maxlength rule at all?