Re: How do i do this validation in struts using validWhen

2005-11-01 Thread Niall Pemberton
On 11/1/05, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > 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 tryin

How do i do this validation in struts using validWhen

2005-11-01 Thread Ashish Kulkarni
Hi 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 test (ttype==2) and (comm