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
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,
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,
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,
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
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
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
7 matches
Mail list logo