RE: numeric field validation using struts
couldn't you use a mask to do this? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:48 AM To: [EMAIL PROTECTED] Subject: numeric field validation using struts Hi, Has any one done inut validation of numeric fields in struts, like i want to validate number of digits after decimal or lenght of the numeric field like the valid valus will be 123.34, but 1234.4 is in valid, I am using dynavalidatorform , so would like some code to put in validation.xml or in strutsvalidator does any one have this kind of validation code, Ashish = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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]
RE: numeric field validation using struts
Hi, Do u have some examle of some website where i can find information about using mask?? Ashish --- "Pani, Gourav" <[EMAIL PROTECTED]> wrote: > couldn't you use a mask to do this? > > -Original Message- > From: Ashish Kulkarni > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 11:48 AM > To: [EMAIL PROTECTED] > Subject: numeric field validation using struts > > > Hi, > > Has any one done inut validation of numeric fields > in > struts, like i want to validate number of digits > after > decimal or lenght of the numeric field > like the valid valus will be 123.34, but 1234.4 is > in > valid, > I am using dynavalidatorform , so would like some > code > to put in validation.xml or in strutsvalidator > > does any one have this kind of validation code, > > Ashish > > = > A$HI$H > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > - > 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] > = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: numeric field validation using struts
look at jakarta's oro which even comes with a cool reg exp tool. or look at: http://jakarta.apache.org/struts/userGuide/dev_validator.html -Tim -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:53 AM To: Struts Users Mailing List Subject: RE: numeric field validation using struts Hi, Do u have some examle of some website where i can find information about using mask?? Ashish --- "Pani, Gourav" <[EMAIL PROTECTED]> wrote: > couldn't you use a mask to do this? > > -Original Message- > From: Ashish Kulkarni > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 11:48 AM > To: [EMAIL PROTECTED] > Subject: numeric field validation using struts > > > Hi, > > Has any one done inut validation of numeric fields > in > struts, like i want to validate number of digits > after > decimal or lenght of the numeric field > like the valid valus will be 123.34, but 1234.4 is > in > valid, > I am using dynavalidatorform , so would like some > code > to put in validation.xml or in strutsvalidator > > does any one have this kind of validation code, > > Ashish > > = > A$HI$H > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > - > 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] > = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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]
RE: numeric field validation using struts
well, you will have to put it in validation.xml. for example, the masks below let you put in all numbers and letters, upper and lowercase for username and password. you will have to put in a mask for your field. mask ^[a-zA-Z0-9]*$ mask ^[a-zA-Z0-9]*$ -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:53 AM To: Struts Users Mailing List Subject: RE: numeric field validation using struts Hi, Do u have some examle of some website where i can find information about using mask?? Ashish --- "Pani, Gourav" <[EMAIL PROTECTED]> wrote: > couldn't you use a mask to do this? > > -Original Message- > From: Ashish Kulkarni > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 11:48 AM > To: [EMAIL PROTECTED] > Subject: numeric field validation using struts > > > Hi, > > Has any one done inut validation of numeric fields > in > struts, like i want to validate number of digits > after > decimal or lenght of the numeric field > like the valid valus will be 123.34, but 1234.4 is > in > valid, > I am using dynavalidatorform , so would like some > code > to put in validation.xml or in strutsvalidator > > does any one have this kind of validation code, > > Ashish > > = > A$HI$H > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > - > 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] > = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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]
RE: numeric field validation using struts
btw. the mask that u want is probably ^\d*.\d\d$ rtfm will help ;) -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:57 AM To: 'Struts Users Mailing List' Subject: RE: numeric field validation using struts look at jakarta's oro which even comes with a cool reg exp tool. or look at: http://jakarta.apache.org/struts/userGuide/dev_validator.html -Tim -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:53 AM To: Struts Users Mailing List Subject: RE: numeric field validation using struts Hi, Do u have some examle of some website where i can find information about using mask?? Ashish --- "Pani, Gourav" <[EMAIL PROTECTED]> wrote: > couldn't you use a mask to do this? > > -Original Message- > From: Ashish Kulkarni > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 11:48 AM > To: [EMAIL PROTECTED] > Subject: numeric field validation using struts > > > Hi, > > Has any one done inut validation of numeric fields > in > struts, like i want to validate number of digits > after > decimal or lenght of the numeric field > like the valid valus will be 123.34, but 1234.4 is > in > valid, > I am using dynavalidatorform , so would like some > code > to put in validation.xml or in strutsvalidator > > does any one have this kind of validation code, > > Ashish > > = > A$HI$H > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > - > 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] > = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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]
RE: numeric field validation using struts
Hi, where do i get information about writing these mask?? like what stands for ^\d* etc, ashish --- "Chen, Gin" <[EMAIL PROTECTED]> wrote: > btw. the mask that u want is probably ^\d*.\d\d$ > rtfm will help ;) > > -Original Message- > From: Chen, Gin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 11:57 AM > To: 'Struts Users Mailing List' > Subject: RE: numeric field validation using struts > > > look at jakarta's oro which even comes with a cool > reg exp tool. > or look at: > http://jakarta.apache.org/struts/userGuide/dev_validator.html > -Tim > > -Original Message- > From: Ashish Kulkarni > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 11:53 AM > To: Struts Users Mailing List > Subject: RE: numeric field validation using struts > > > Hi, > Do u have some examle of some website where i can > find > information about using mask?? > > Ashish > --- "Pani, Gourav" <[EMAIL PROTECTED]> > wrote: > > couldn't you use a mask to do this? > > > > -Original Message- > > From: Ashish Kulkarni > > [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 20, 2003 11:48 AM > > To: [EMAIL PROTECTED] > > Subject: numeric field validation using struts > > > > > > Hi, > > > > Has any one done inut validation of numeric fields > > in > > struts, like i want to validate number of digits > > after > > decimal or lenght of the numeric field > > like the valid valus will be 123.34, but 1234.4 is > > in > > valid, > > I am using dynavalidatorform , so would like some > > code > > to put in validation.xml or in strutsvalidator > > > > does any one have this kind of validation code, > > > > Ashish > > > > = > > A$HI$H > > > > __ > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, more > > http://taxes.yahoo.com/ > > > > > - > > 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] > > > > > = > A$HI$H > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > - > 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] > = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: numeric field validation using struts
are we playing, "Adventures in spoon-feeding"? you may want to learn to use google. -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 12:06 PM To: Struts Users Mailing List Subject: RE: numeric field validation using struts Hi, where do i get information about writing these mask?? like what stands for ^\d* etc, ashish --- "Chen, Gin" <[EMAIL PROTECTED]> wrote: > btw. the mask that u want is probably ^\d*.\d\d$ > rtfm will help ;) > > -Original Message- > From: Chen, Gin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 11:57 AM > To: 'Struts Users Mailing List' > Subject: RE: numeric field validation using struts > > > look at jakarta's oro which even comes with a cool > reg exp tool. > or look at: > http://jakarta.apache.org/struts/userGuide/dev_validator.html > -Tim > > -Original Message- > From: Ashish Kulkarni > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 11:53 AM > To: Struts Users Mailing List > Subject: RE: numeric field validation using struts > > > Hi, > Do u have some examle of some website where i can > find > information about using mask?? > > Ashish > --- "Pani, Gourav" <[EMAIL PROTECTED]> > wrote: > > couldn't you use a mask to do this? > > > > -Original Message- > > From: Ashish Kulkarni > > [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 20, 2003 11:48 AM > > To: [EMAIL PROTECTED] > > Subject: numeric field validation using struts > > > > > > Hi, > > > > Has any one done inut validation of numeric fields > > in > > struts, like i want to validate number of digits > > after > > decimal or lenght of the numeric field > > like the valid valus will be 123.34, but 1234.4 is > > in > > valid, > > I am using dynavalidatorform , so would like some > > code > > to put in validation.xml or in strutsvalidator > > > > does any one have this kind of validation code, > > > > Ashish > > > > = > > A$HI$H > > > > __ > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, more > > http://taxes.yahoo.com/ > > > > > - > > 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] > > > > > = > A$HI$H > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > - > 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] > = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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]
Re: numeric field validation using struts
it's regex, try the regular expression book from Oreilly, probably best book out there. On Thursday, Feb 20, 2003, at 12:06 US/Eastern, Ashish Kulkarni wrote: Hi, where do i get information about writing these mask?? like what stands for ^\d* etc, ashish --- "Chen, Gin" <[EMAIL PROTECTED]> wrote: btw. the mask that u want is probably ^\d*.\d\d$ rtfm will help ;) -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:57 AM To: 'Struts Users Mailing List' Subject: RE: numeric field validation using struts look at jakarta's oro which even comes with a cool reg exp tool. or look at: http://jakarta.apache.org/struts/userGuide/dev_validator.html -Tim -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:53 AM To: Struts Users Mailing List Subject: RE: numeric field validation using struts Hi, Do u have some examle of some website where i can find information about using mask?? Ashish --- "Pani, Gourav" <[EMAIL PROTECTED]> wrote: couldn't you use a mask to do this? -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:48 AM To: [EMAIL PROTECTED] Subject: numeric field validation using struts Hi, Has any one done inut validation of numeric fields in struts, like i want to validate number of digits after decimal or lenght of the numeric field like the valid valus will be 123.34, but 1234.4 is in valid, I am using dynavalidatorform , so would like some code to put in validation.xml or in strutsvalidator does any one have this kind of validation code, Ashish = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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] = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - 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] = A$HI$H __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] R -- Robert S. Sfeir Senior Java Engineer National Institutes of Health Center for Information Technology Department of Enterprise Custom Applications [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: numeric field validation using struts
http://java.sun.com/docs/books/tutorial/extra/regex/intro.html -= J > -Original Message- > From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20, 2003 11:06 AM > To: Struts Users Mailing List > Subject: RE: numeric field validation using struts > > > Hi, > where do i get information about writing these mask?? > like what stands for ^\d* etc, > > ashish > --- "Chen, Gin" <[EMAIL PROTECTED]> wrote: > > btw. the mask that u want is probably ^\d*.\d\d$ > > rtfm will help ;) > > > > -Original Message- > > From: Chen, Gin [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 20, 2003 11:57 AM > > To: 'Struts Users Mailing List' > > Subject: RE: numeric field validation using struts > > > > > > look at jakarta's oro which even comes with a cool > > reg exp tool. > > or look at: > > > http://jakarta.apache.org/struts/userGuide/dev_validator.html > > -Tim > > > > -----Original Message- > > From: Ashish Kulkarni > > [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 20, 2003 11:53 AM > > To: Struts Users Mailing List > > Subject: RE: numeric field validation using struts > > > > > > Hi, > > Do u have some examle of some website where i can > > find > > information about using mask?? > > > > Ashish > > --- "Pani, Gourav" <[EMAIL PROTECTED]> > > wrote: > > > couldn't you use a mask to do this? > > > > > > -Original Message- > > > From: Ashish Kulkarni > > > [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, February 20, 2003 11:48 AM > > > To: [EMAIL PROTECTED] > > > Subject: numeric field validation using struts > > > > > > > > > Hi, > > > > > > Has any one done inut validation of numeric fields > > > in > > > struts, like i want to validate number of digits > > > after > > > decimal or lenght of the numeric field > > > like the valid valus will be 123.34, but 1234.4 is > > > in > > > valid, > > > I am using dynavalidatorform , so would like some > > > code > > > to put in validation.xml or in strutsvalidator > > > > > > does any one have this kind of validation code, > > > > > > Ashish > > > > > > = > > > A$HI$H > > > > > > __ > > > Do you Yahoo!? > > > Yahoo! Tax Center - forms, calculators, tips, more > > > http://taxes.yahoo.com/ > > > > > > > > > - > > > 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] > > > > > > > > > = > > A$HI$H > > > > __ > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, more > > http://taxes.yahoo.com/ > > > > > - > > 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] > > > > > = > A$HI$H > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > - > 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]