Struts form validation

2006-08-01 Thread Hanmay Udgiri
Hi I have a action form bean class.The action form consists of around another 5 forms. Each form consists of its own validation.How to call the form validate method. One method call errors = myform2.validate(); errors = myform3.validate(); errors = myform4.validate(); errors = myform5.validate();

Re: Struts Form Validation Question

2004-12-22 Thread Eddie Bush
CTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Monday, December 20, 2004 12:12 AM > Subject: Re: Struts Form Validation Question > > > ^([a-zA-Z]+['-\s])*$ > > > > That's top of my head ... and my head is tired :-( but

Re: Struts Form Validation Question

2004-12-22 Thread send2rajesh
Thanks for your help Eddie! Regex worked perfect. I had given up hope on getting right regex. Thanks Again! - Original Message - From: "Eddie Bush" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, December 20, 2004 1

Re: Struts Form Validation Question

2004-12-20 Thread Eddie Bush
** > > Original Message Follows > From: <[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: Struts Form Validation Question > Date: Sun, 19 Dec 2

RE: Struts Form Validation Question

2004-12-20 Thread Ruben Cepeda
EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Struts Form Validation Question Date: Sun, 19 Dec 2004 23:36:48 -0500 Hi, I am using struts validator plugin. I have form field which requires following validation: "Full Name can contain only letters, dashes (-), apsotrophes(') and

Re: Struts Form Validation Question

2004-12-19 Thread Eddie Bush
^([a-zA-Z]+['-\s])*$ That's top of my head ... and my head is tired :-( but maybe it's helpful. You need to separate the repeating things from the non-repeating things, and allow the two of them to be chained multiple times. Having such complete validation of a name seems error-prone at best tho

Struts Form Validation Question

2004-12-19 Thread send2rajesh
Hi, I am using struts validator plugin. I have form field which requires following validation: "Full Name can contain only letters, dashes (-), apsotrophes(') and single spaces" Here is the regex I am using for this validation : ^[a-zA-Z'-\s]*$ The only problem with this regex is that it allows use

SV: Struts Form Validation

2004-04-12 Thread hermod . opstvedt
Hi In you mapping you have : input="/com/mbresearch/main/view/signin.jsp" - This is where it will go if something goes wrong. Hermod -Opprinnelig melding- Fra: Ray Madigan [mailto:[EMAIL PROTECTED] Sendt: 7. april 2004 20:03 Til: Struts-User Emne: Struts Form Validation

Struts Form Validation

2004-04-07 Thread Ray Madigan
I have a problem that I cannot see why it behaves the way it does, and was hoping a couple more eyeballs might help, thanks! I have a jsp that has A couple of input controls including username When the user types in all of the fields correcly this work fine. The execute method of action si