Thanks for the response Imran.

<plea-for-help>
I'd rather not do a custom validator if it's not necessary, but if nobody
else reponds I might have to bite the bullet and create one...
I'm surprised I haven't gotten any other responses, this seems like
something that many other people would have run into, or would at least know
how to handle...
</plea-for-help>

Thanks in advance!


- Keith



-----Original Message-----
From: Imran Bohoran [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 12:00 AM
To: Struts Users Mailing List
Subject: RE: validwhen Alternative


We had a requirement of this sought as well. Since we needed it fast, we
went ahead with the custom validator. And it works fine. so keith, if you
want to get crackin on it I guess the custom validator is the way to go. if
anyone else has any other ideas i'll be excited to hear them. 

- I

-----Original Message-----
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:02 PM
To: Struts (E-mail)
Subject: validwhen Alternative


Hey everyone,
>From what I hear, it seems like the validwhen validation is not supported in
the final release of Struts 1.1.  Is there an alternative to this?

I have a form where 2 of the fields are start range and end range.  I want a
validation that does the following:
1) If start range is filled in, and end range isn't, validation is
successful.
2) If start range is less than or equal to the end range (and end range is
greater than or equal to start range), validation is successful.
3) Start range must be filled in.

Do I need a custom validator for this, or can I get away with the existing
validations?  Any help with this would be greatly appreciated, thanks!


- Keith


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to