Hello. I've got a problem with the requiredif condition in the struts validator. I'm using this dtd:
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd The validation rule is: <formset> <form name="icytReviForm"> <field property="tituloRevista" depends="requiredif"> <arg0 key="icytReviForm.tituloRevista.displayname"/> <var> <var-name>field[0]</var-name> <var-value>accion</var-value> </var> <var> <var-name>fieldTest[0]</var-name> <var-value>EQUAL</var-value> </var> <var> <var-name>fieldValue[0]</var-name> <var-value>alta</var-value> </var> </field> </form> </formset> accion is a hidden value that it's set when i put a submit button...the form is <html:form action="/icytReviAction" onsubmit="return validateIcytReviForm(this)"> Titulo:</td><td><html:text property="tituloRevista" size="80"/> <html:submit value="alta" onclick="javascript:document.forms[0].accion.value='alta';"/> <html:text property="accion" value="alta"/> </html:form> When I push the alta submit button the validator don't execute the requiredif condition and don't validate my form. Any suggestion about the problem? Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]