struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li <ampyx...@gmail.com>
Subject Re: Validation on String[]
Date Thu, 21 Sep 2006 10:39:12 GMT
have you tried java.util.ArrayList,

or

create an action form that extends ValidatorForm, which declare your List
object there

On 9/21/06, Sahil Gupta <sahil@netedgecomputing.com> wrote:
>
> Hi,
>
> How can we use List or ArrayList in DynaValidator Forms?
>
>
> Regards,
>
> Sahil Gupta
>
>
>
> -----Original Message-----
> From: Li [mailto:ampyx.li@gmail.com]
> 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 <sahil@netedgecomputing.com> 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 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 submit button without selecting anything in the picklist. I have
> > handled this validation in my Action but I want to do this through
> > validation.xml
> >
> >
> >
> > Regards,
> >
> > Sahil Gupta
> >
> >
> >
> >
>
>
> --
> When we invent time, we invent death.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
When we invent time, we invent death.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message