File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Doubt in field validation using struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Doubt in field validation using struts" Watch "Doubt in field validation using struts" New topic

Doubt in field validation using struts

Phanindra varma

Joined: Jul 29, 2005
Posts: 14
Hi All,

Can you please help me out in this.

I have a text field i need to validate that text field using validator frame work. The text filed should accept multiple conditions like below:

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)

How should i validate these conditions with single text field. can you please help me ....
Thanks in Advance
I agree. Here's the link:
subject: Doubt in field validation using struts
Similar Threads
validations using strings
Validation question
Validatons using Strings
Multiple Error messages for Single regex validation
Group variable validation