struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stanlick <stanl...@gmail.com>
Subject Re: Conditional validation
Date Mon, 20 Aug 2007 11:58:28 GMT

Perhaps someone can order this XML to produce the desired result?

	<field name="model.password">
		<field-validator type="requiredstring">
			<message key="requiredstring" />
		</field-validator>
	</field>
	<field name="model.confirmPassword">
		<field-validator type="requiredstring">
			<message key="requiredstring" />
		</field-validator>
	</field>


	<validator type="expression">
		
			model.password.equals(model.confirmPassword)
		
		<message>
			${getText("nomatch")} ${model.password} and
			${model.confirmPassword}
		</message>
	</validator>
-- 
View this message in context: http://www.nabble.com/Conditional-validation-tf3678771.html#a12234444
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message