struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ashish Kulkarni <>
Subject How do i do this validation in struts using validWhen
Date Tue, 01 Nov 2005 14:10:22 GMT
Suppose i have entry text fields on a jsp, named ttype
and comment,
i want to add a validation saying that if ttype='2',
then comment cannot be blank, if ttype='3' or any
other value then comment can be blank,

what i am trying is following
<form name="ContractApprovalForm">
 <field property="comment" depends="validWhen">
	<arg0 key="errors.comment" />
<var-value>(ttype==2) and (comment !=
Will this work


Yahoo! Mail - PC Magazine Editors' Choice 2005

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message