Re: Problem with validations

2005-12-12 Thread Deepa Khetan
Thanks Laurie :) On 12/13/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Struts uses the Jakarta ORO regex package [1]. It provides Perl5-like > regular expression support, so any guide to Perl5 regex's should be > applicable. If you want to *really* understand regular expressions, in > all thei

Re: Problem with validations

2005-12-12 Thread Laurie Harper
Struts uses the Jakarta ORO regex package [1]. It provides Perl5-like regular expression support, so any guide to Perl5 regex's should be applicable. If you want to *really* understand regular expressions, in all their gory detail, I highly recommend Mastering Regular Exressions from O'Reilly.

Re: Problem with validations

2005-12-10 Thread Deepa Khetan
Can anyone tell me where i can find all the Regular Expressions, explained perfectly, for using in validator's framework?? Searching on net gives me a whole lot of things which i am not able to figure out. On 12/10/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > Yeah, I can see in some cases it m

Re: Problem with validations

2005-12-09 Thread Laurie Harper
Yeah, I can see in some cases it might be quite handy to be able to do this. I'm not sure how you'd go about exposing such a feature, though. You might want to start a discussion on the Commons list to see if there's any interest in building this in somehow. L. Raghu Kanchustambham wrote: I

Re: Problem with validations

2005-12-05 Thread Raghu Kanchustambham
I can not recall the exact instance where I felt something like that would be cool... but when I was coding something, I did feel something like that would be useful. But let me cook up an example for you right now: Lets say I have a "Mode of Payment" dropdown which would let me select "CreditCard

Re: Problem with validations

2005-12-05 Thread Laurie Harper
So you're proposing a way for a 'validwhen' rule to be able to invoke other validation rules (or control which of the validations specified by the 'depends' value is actually enforced)? I actually think that could be quite useful in some cases, but probably not very many. Can you think of any c

Re: Problem with validations

2005-12-05 Thread Raghu Kanchustambham
That is correct .. but what would be more interesting and more useful is to say "this should be in a date format when that text box is filled" or something of that sort. What I think validation f/w supports is validwhen "co-exists" with other validation rules... but they are kind of independent. I

Re: Problem with validations

2005-12-05 Thread Laurie Harper
Well, you can use multiple validations, (including validwhen) together, but if you do they all have to pass. So you can't, for example, use validwhen to say a field can be empty if some other field isn't set, but must pass the 'date' validation otherwise. Not sure if that made sense or not...

Re: Problem with validations

2005-12-05 Thread Raghu Kanchustambham
Just wondering Laurie ... why cant I use other "validation rules" along with validwhen? I dont see any fundamental reason why I need to resort to regular expressions when I use validwhen tag. For example, it would be great if I could say .. validwhen (some test) .. use the date validation! Is ther

Re: Problem with validations

2005-12-05 Thread Laurie Harper
I was going to say 'yes, you can do that,' but I don't think you can express field length constraints with validwhen unfortunately :-( L. Deepa Khetan wrote: Actually, i need to implement a if{} else{} condition in validation framework.. if(field1=='usr1'){ minlength

Re: Problem with validations

2005-12-04 Thread Deepa Khetan
Actually, i need to implement a if{} else{} condition in validation framework.. if(field1=='usr1'){ minlength 8 maxlength 14 }else{ minlength 6 maxlength 11

Re: Problem with validations

2005-12-04 Thread Laurie Harper
Wendy Smoak wrote: On 12/4/05, Deepa Khetan <[EMAIL PROTECTED]> wrote: I need sme help with validator framework.. I have a LogonForm which is being mapped with 2 different JSPs. Both the JSPs have the password field, but the validation for the field are diferent(The minlength and maxlength for b

Re: Problem with validations

2005-12-04 Thread Wendy Smoak
On 12/4/05, Deepa Khetan <[EMAIL PROTECTED]> wrote: > I need sme help with validator framework.. I have a LogonForm which is being > mapped with 2 different JSPs. Both the JSPs have the password field, but the > validation for the field are diferent(The minlength and maxlength for both > the pages

Problem with validations

2005-12-04 Thread Deepa Khetan
Hi, I need sme help with validator framework.. I have a LogonForm which is being mapped with 2 different JSPs. Both the JSPs have the password field, but the validation for the field are diferent(The minlength and maxlength for both the pages is different). On the basis of the value of some other