Re: Please show me an example of Struts client side javascript validation for Array

2005-02-21 Thread Anthony Hong
If you have two fields with the same name in same form. Javascript considers that this is a array. You can get it's value from arrayName[index].value, right? I could validate it by Javasript, I saw strtus validation frameworks validation could generate stardard javascript validation. So I want to

Re: Please show me an example of Struts client side javascript validation for Array

2005-02-21 Thread Tim Christopher
I've never heard of having two fields with the same name in the same form - what are you hoping to achieve that you couldn't do with naming them different things? I can't see how any server process could be expected to tell the difference either. Tim On Mon, 21 Feb 2005 23:19:11 +0800, Anthony H

Re: Please show me an example of Struts client side javascript validation for Array

2005-02-21 Thread Anthony Hong
Exactly. I have two fields with the same name in the same form. Do you know how to define the validation rules? On Mon, 21 Feb 2005 15:04:59 +, Tim Christopher <[EMAIL PROTECTED]> wrote: > You have two fields with the same name in the same form? > > Sorry if I've misunderstood. > -- Ant

Re: Please show me an example of Struts client side javascript validation for Array

2005-02-21 Thread Tim Christopher
You have two fields with the same name in the same form? Sorry if I've misunderstood. On Mon, 21 Feb 2005 15:35:25 +0800, Anthony Hong <[EMAIL PROTECTED]> wrote: > I have two fields with same name > > > > Could I use validation.xml to config validation for customerName field? > How to write i

Please show me an example of Struts client side javascript validation for Array

2005-02-20 Thread Anthony Hong
I have two fields with same name Could I use validation.xml to config validation for customerName field? How to write it? I tried But it didn't work. Who know the problem? Thanks a lot! -- Anthony Hong --