Re: Validation on String[]

2006-09-21 Thread Mark Shifman
truts Users Mailing List Subject: RE: Validation on String[] in your action class: ArrayList list = new ArrayList(); Location location = new Location(); location.setLocationName("A Location"); list.add(location); dyForm.set("locations

RE: Validation on String[]

2006-09-21 Thread Sahil Gupta
a simple array of strings (eg java.lang.String[]) as the property attribute is required by the validator. From: Sahil Gupta [mailto:[EMAIL PROTECTED] Sent: Thu 21/09/2006 8:40 PM To: 'Struts Users Mailing List' Subject: RE: Validation on String[] Hi,

RE: Validation on String[]

2006-09-21 Thread Strachan, Paul
a simple array of strings (eg java.lang.String[]) as the property attribute is required by the validator. From: Sahil Gupta [mailto:[EMAIL PROTECTED] Sent: Thu 21/09/2006 8:40 PM To: 'Struts Users Mailing List' Subject: RE: Validation on String[] Hi,

Re: Validation on String[]

2006-09-21 Thread Li
essage- From: Li [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 3:57 PM To: Struts Users Mailing List Subject: Re: Validation on String[] hi, there is no such type : java.lang.String[], try to use List or ArrayList On 9/21/06, Sahil Gupta <[EMAIL PROTECTED]> wrote: > > Hi,

RE: Validation on String[]

2006-09-21 Thread Sahil Gupta
Hi, How can we use List or ArrayList in DynaValidator Forms? Regards, Sahil Gupta -Original Message- From: Li [mailto:[EMAIL PROTECTED] Sent: Thursday, September 21, 2006 3:57 PM To: Struts Users Mailing List Subject: Re: Validation on String[] hi, there is no such type

Re: Validation on String[]

2006-09-21 Thread Li
hi, there is no such type : java.lang.String[], try to use List or ArrayList On 9/21/06, Sahil Gupta <[EMAIL PROTECTED]> wrote: Hi, I have used a dyna form in which I have a property which is a multi-select pick list defined as form-property name="location" type="java.lang.String[] Now I wan

Validation on String[]

2006-09-21 Thread Sahil Gupta
Hi, I have used a dyna form in which I have a property which is a multi-select pick list defined as form-property name="location" type="java.lang.String[] Now I want to put validation (required and/or mask) on this. Can anyone please guide me. I want it to show an error if the user clicks on s