Re: SV: AW: Form Validation

2004-03-15 Thread Jignesh Patel
OK I am giving working code map it with your app
1 .in Validation.xml  following code
 
  




minlength
5


   
mask
^[a-zA-Z]{1}[a-zA-Z0-9_]*$
   


maxlength
15

   

2. in Form class extend ValidatorForm

3. In struts-config file in action path for action-mapping

 




4. in index.jsp 

  

after body put


n last don't forget to use submit tage, if you are using html:img then it 
won't work.

On Monday 15 March 2004 16:32, Nina Bertilsdotter wrote:
> I'm not sure I understand what you mean
>
> -Ursprungligt meddelande-
> Från: Jignesh Patel [mailto:[EMAIL PROTECTED]
> Skickat: den 15 mars 2004 12:00
> Till: Struts Users Mailing List; Otto, Frank
> Ämne: Re: AW: Form Validation
>
> R u passing input value in struts-config.
> If implement as per mail say it has to work.
>
> On Monday 15 March 2004 16:23, Otto, Frank wrote:
> > I use ValidatorForm, but I think it's not the solution.
> >
> > -Ursprüngliche Nachricht-
> > Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 15. März 2004 11:42
> > An: 'Struts Users Mailing List'
> > Betreff: SV: Form Validation
> >
> >
> >
> > No, it extends ValidatorActionForm.
> >
> > -Ursprungligt meddelande-----
> > Från: Otto, Frank [mailto:[EMAIL PROTECTED]
> > Skickat: den 15 mars 2004 11:41
> > Till: 'Struts Users Mailing List'
> > Ämne: AW: Form Validation
> >
> > Does your form class extend the ValidatorForm?
> >
> > -Ursprüngliche Nachricht-
> > Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 15. März 2004 11:39
> > An: 'Struts Users Mailing List'
> > Betreff: SV: Form Validation
> >
> >
> >
> > Thanks Budi, but that didn't seem to do the trick either.  When I enter 4
> > (min range is 1900) in the "year" field I still don't get an error.
> >
> > -Ursprungligt meddelande-
> > Från: Budi Rostiarso [mailto:[EMAIL PROTECTED]
> > Skickat: den 15 mars 2004 11:31
> > Till: Struts Users Mailing List
> > Ämne: RE: Form Validation
> >
> > Try putting max arg, because i think range validation must be supplied
> > with min and max (range) value.
> >
> >   > resource="false"/>
> >   > resource="false"/>
> >  
> >min
> >${minYear}
> >  
> >  
> >max
> >${maxYear}
> >  
> >
> >
> > CMIIW,
> >
> > bdr.
> >
> > -Original Message-
> > From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 15, 2004 5:25 PM
> > To: 'Struts Users Mailing List'
> > Subject: SV: Form Validation
> >
> >
> >
> > Thank you, Frank, I was indeed missing the "validation='true'" but that
> > didn't seem to fix my problem... must be something else; I guess I've
> > got to
> > keep digging.
> >
> > Nina
> >
> > -Ursprungligt meddelande-
> > Från: Otto, Frank [mailto:[EMAIL PROTECTED]
> > Skickat: den 15 mars 2004 11:13
> > Till: 'Struts Users Mailing List'
> > Ämne: AW: Form Validation
> >
> > Hi Nina,
> >
> > you had to set validation="true" in your action definition
> > (struts-config.xml).
> >
> >
> > Regards,
> >
> > Frank
> >
> > -Ursprungliche Nachricht-
> > Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 15. Marz 2004 11:09
> > An: 'Struts Users Mailing List'
> > Betreff: Form Validation
> >
> >
> > Hi People,
> > I'm pulling my hair out trying to get form validation to work through
> > the
> > validator, any help will be much appreciated.  In this example I'm
> > trying to
> > validate a single field ("year" of type int), should be pretty easy, one
> > might think, but alas, I'm stuck and I can't get it to work. I'm sure it
> > is
> > something simple but I've gone

SV: AW: Form Validation

2004-03-15 Thread Nina Bertilsdotter

I'm not sure I understand what you mean

-Ursprungligt meddelande-
Från: Jignesh Patel [mailto:[EMAIL PROTECTED] 
Skickat: den 15 mars 2004 12:00
Till: Struts Users Mailing List; Otto, Frank
Ämne: Re: AW: Form Validation

R u passing input value in struts-config.
If implement as per mail say it has to work.
On Monday 15 March 2004 16:23, Otto, Frank wrote:
> I use ValidatorForm, but I think it's not the solution.
>
> -Ursprüngliche Nachricht-
> Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. März 2004 11:42
> An: 'Struts Users Mailing List'
> Betreff: SV: Form Validation
>
>
>
> No, it extends ValidatorActionForm.
>
> -Ursprungligt meddelande-
> Från: Otto, Frank [mailto:[EMAIL PROTECTED]
> Skickat: den 15 mars 2004 11:41
> Till: 'Struts Users Mailing List'
> Ämne: AW: Form Validation
>
> Does your form class extend the ValidatorForm?
>
> -Ursprüngliche Nachricht-
> Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. März 2004 11:39
> An: 'Struts Users Mailing List'
> Betreff: SV: Form Validation
>
>
>
> Thanks Budi, but that didn't seem to do the trick either.  When I enter 4
> (min range is 1900) in the "year" field I still don't get an error.
>
> -Ursprungligt meddelande-
> Från: Budi Rostiarso [mailto:[EMAIL PROTECTED]
> Skickat: den 15 mars 2004 11:31
> Till: Struts Users Mailing List
> Ämne: RE: Form Validation
>
> Try putting max arg, because i think range validation must be supplied
> with min and max (range) value.
>
> resource="false"/>
> resource="false"/>
>  
>min
>${minYear}
>  
>  
>max
>${maxYear}
>  
>
>
> CMIIW,
>
> bdr.
>
> -Original Message-
> From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 15, 2004 5:25 PM
> To: 'Struts Users Mailing List'
> Subject: SV: Form Validation
>
>
>
> Thank you, Frank, I was indeed missing the "validation='true'" but that
> didn't seem to fix my problem... must be something else; I guess I've
> got to
> keep digging.
>
> Nina
>
> -Ursprungligt meddelande-
> Från: Otto, Frank [mailto:[EMAIL PROTECTED]
> Skickat: den 15 mars 2004 11:13
> Till: 'Struts Users Mailing List'
> Ämne: AW: Form Validation
>
> Hi Nina,
>
> you had to set validation="true" in your action definition
> (struts-config.xml).
>
>
> Regards,
>
> Frank
>
> -Ursprungliche Nachricht-
> Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. Marz 2004 11:09
> An: 'Struts Users Mailing List'
> Betreff: Form Validation
>
>
> Hi People,
> I'm pulling my hair out trying to get form validation to work through
> the
> validator, any help will be much appreciated.  In this example I'm
> trying to
> validate a single field ("year" of type int), should be pretty easy, one
> might think, but alas, I'm stuck and I can't get it to work. I'm sure it
> is
> something simple but I've gone blind from looking at it. Thanks.
>
> JSP:
> 
> 
> 
>
> Struts-config:
>
> 
> 
> 
>type="packageName/MyAction"
>   scope="request"
>   name="myForm"
>   input="myPage.jsp ">
> 
> 
>
> Validation.xml:
>
> 
>   
> 
>  resource="false"/>
> 
> min
> 1900
> 
>
> 
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional c

Re: AW: Form Validation

2004-03-15 Thread Jignesh Patel
R u passing input value in struts-config.
If implement as per mail say it has to work.
On Monday 15 March 2004 16:23, Otto, Frank wrote:
> I use ValidatorForm, but I think it's not the solution.
>
> -Ursprüngliche Nachricht-
> Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. März 2004 11:42
> An: 'Struts Users Mailing List'
> Betreff: SV: Form Validation
>
>
>
> No, it extends ValidatorActionForm.
>
> -Ursprungligt meddelande-
> Från: Otto, Frank [mailto:[EMAIL PROTECTED]
> Skickat: den 15 mars 2004 11:41
> Till: 'Struts Users Mailing List'
> Ämne: AW: Form Validation
>
> Does your form class extend the ValidatorForm?
>
> -Ursprüngliche Nachricht-
> Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. März 2004 11:39
> An: 'Struts Users Mailing List'
> Betreff: SV: Form Validation
>
>
>
> Thanks Budi, but that didn't seem to do the trick either.  When I enter 4
> (min range is 1900) in the "year" field I still don't get an error.
>
> -Ursprungligt meddelande-
> Från: Budi Rostiarso [mailto:[EMAIL PROTECTED]
> Skickat: den 15 mars 2004 11:31
> Till: Struts Users Mailing List
> Ämne: RE: Form Validation
>
> Try putting max arg, because i think range validation must be supplied
> with min and max (range) value.
>
> resource="false"/>
> resource="false"/>
>  
>min
>${minYear}
>  
>  
>max
>${maxYear}
>  
>
>
> CMIIW,
>
> bdr.
>
> -Original Message-
> From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 15, 2004 5:25 PM
> To: 'Struts Users Mailing List'
> Subject: SV: Form Validation
>
>
>
> Thank you, Frank, I was indeed missing the "validation='true'" but that
> didn't seem to fix my problem... must be something else; I guess I've
> got to
> keep digging.
>
> Nina
>
> -Ursprungligt meddelande-
> Från: Otto, Frank [mailto:[EMAIL PROTECTED]
> Skickat: den 15 mars 2004 11:13
> Till: 'Struts Users Mailing List'
> Ämne: AW: Form Validation
>
> Hi Nina,
>
> you had to set validation="true" in your action definition
> (struts-config.xml).
>
>
> Regards,
>
> Frank
>
> -Ursprungliche Nachricht-
> Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 15. Marz 2004 11:09
> An: 'Struts Users Mailing List'
> Betreff: Form Validation
>
>
> Hi People,
> I'm pulling my hair out trying to get form validation to work through
> the
> validator, any help will be much appreciated.  In this example I'm
> trying to
> validate a single field ("year" of type int), should be pretty easy, one
> might think, but alas, I'm stuck and I can't get it to work. I'm sure it
> is
> something simple but I've gone blind from looking at it. Thanks.
>
> JSP:
> 
> 
> 
>
> Struts-config:
>
> 
> 
> 
>type="packageName/MyAction"
>   scope="request"
>   name="myForm"
>   input="myPage.jsp ">
> 
> 
>
> Validation.xml:
>
> 
>   
> 
>  resource="false"/>
> 
> min
> 1900
> 
>
> 
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Form Validation

2004-03-15 Thread Otto, Frank
I use ValidatorForm, but I think it's not the solution.

-Ursprüngliche Nachricht-
Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. März 2004 11:42
An: 'Struts Users Mailing List'
Betreff: SV: Form Validation



No, it extends ValidatorActionForm.

-Ursprungligt meddelande-
Från: Otto, Frank [mailto:[EMAIL PROTECTED] 
Skickat: den 15 mars 2004 11:41
Till: 'Struts Users Mailing List'
Ämne: AW: Form Validation

Does your form class extend the ValidatorForm?

-Ursprüngliche Nachricht-
Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. März 2004 11:39
An: 'Struts Users Mailing List'
Betreff: SV: Form Validation



Thanks Budi, but that didn't seem to do the trick either.  When I enter 4
(min range is 1900) in the "year" field I still don't get an error.

-Ursprungligt meddelande-
Från: Budi Rostiarso [mailto:[EMAIL PROTECTED] 
Skickat: den 15 mars 2004 11:31
Till: Struts Users Mailing List
Ämne: RE: Form Validation

Try putting max arg, because i think range validation must be supplied
with min and max (range) value.

 
 
 
   min
   ${minYear}
 
 
   max
   ${maxYear}
 


CMIIW,

bdr.

-Original Message-
From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 5:25 PM
To: 'Struts Users Mailing List'
Subject: SV: Form Validation



Thank you, Frank, I was indeed missing the "validation='true'" but that
didn't seem to fix my problem... must be something else; I guess I've
got to
keep digging.

Nina  

-Ursprungligt meddelande-
Från: Otto, Frank [mailto:[EMAIL PROTECTED] 
Skickat: den 15 mars 2004 11:13
Till: 'Struts Users Mailing List'
Ämne: AW: Form Validation

Hi Nina,

you had to set validation="true" in your action definition
(struts-config.xml).


Regards,

Frank

-Ursprungliche Nachricht-
Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. Marz 2004 11:09
An: 'Struts Users Mailing List'
Betreff: Form Validation


Hi People,
I'm pulling my hair out trying to get form validation to work through
the
validator, any help will be much appreciated.  In this example I'm
trying to
validate a single field ("year" of type int), should be pretty easy, one
might think, but alas, I'm stuck and I can't get it to work. I'm sure it
is
something simple but I've gone blind from looking at it. Thanks.
 
JSP:



 
Struts-config:
 




 

 
Validation.xml:
 
 
  



min
1900



 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Form Validation

2004-03-15 Thread Otto, Frank
Does your form class extend the ValidatorForm?

-Ursprüngliche Nachricht-
Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. März 2004 11:39
An: 'Struts Users Mailing List'
Betreff: SV: Form Validation



Thanks Budi, but that didn't seem to do the trick either.  When I enter 4
(min range is 1900) in the "year" field I still don't get an error.

-Ursprungligt meddelande-
Från: Budi Rostiarso [mailto:[EMAIL PROTECTED] 
Skickat: den 15 mars 2004 11:31
Till: Struts Users Mailing List
Ämne: RE: Form Validation

Try putting max arg, because i think range validation must be supplied
with min and max (range) value.

 
 
 
   min
   ${minYear}
 
 
   max
   ${maxYear}
 


CMIIW,

bdr.

-Original Message-
From: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 5:25 PM
To: 'Struts Users Mailing List'
Subject: SV: Form Validation



Thank you, Frank, I was indeed missing the "validation='true'" but that
didn't seem to fix my problem... must be something else; I guess I've
got to
keep digging.

Nina  

-Ursprungligt meddelande-
Från: Otto, Frank [mailto:[EMAIL PROTECTED] 
Skickat: den 15 mars 2004 11:13
Till: 'Struts Users Mailing List'
Ämne: AW: Form Validation

Hi Nina,

you had to set validation="true" in your action definition
(struts-config.xml).


Regards,

Frank

-Ursprungliche Nachricht-
Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. Marz 2004 11:09
An: 'Struts Users Mailing List'
Betreff: Form Validation


Hi People,
I'm pulling my hair out trying to get form validation to work through
the
validator, any help will be much appreciated.  In this example I'm
trying to
validate a single field ("year" of type int), should be pretty easy, one
might think, but alas, I'm stuck and I can't get it to work. I'm sure it
is
something simple but I've gone blind from looking at it. Thanks.
 
JSP:



 
Struts-config:
 




 

 
Validation.xml:
 
 
  



min
1900



 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Form Validation

2004-03-15 Thread Otto, Frank
Hi Nina,

you had to set validation="true" in your action definition (struts-config.xml).


Regards,

Frank

-Ursprungliche Nachricht-
Von: Nina Bertilsdotter [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 15. Marz 2004 11:09
An: 'Struts Users Mailing List'
Betreff: Form Validation


Hi People,
I'm pulling my hair out trying to get form validation to work through the
validator, any help will be much appreciated.  In this example I'm trying to
validate a single field ("year" of type int), should be pretty easy, one
might think, but alas, I'm stuck and I can't get it to work. I'm sure it is
something simple but I've gone blind from looking at it. Thanks.
 
JSP:



 
Struts-config:
 




 

 
Validation.xml:
 
 
  



min
1900



 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]