my dog learned polymorphism
The moose likes Java in General and the fly likes validations using strings Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

validations using strings

Phanindra varma
Greenhorn

Joined: Jul 29, 2005
Posts: 14
Hi All,
Can anybody please help me out.

I have a text field i need to validate that text field with the following condtions using strings.

1. It should accept year (eg : 2006)
2. It should accept month (eg : 09/2006)
3. It should accept date (eg : 11/09/2006)
4. It should accept range (eg: 2006-2009)
5. Months (eg: 15 M)
6. years (eg: 5 y)

Can anybody please help me out.

Thanks in Advance.
Srinivasa Raghavan
Ranch Hand

Joined: Sep 28, 2004
Posts: 1228
No Cross posts please.


Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: validations using strings
 
Similar Threads
Arabic letters in Text object
Validatons using Strings
Group variable validation
Regarding Login
Doubt in field validation using struts