aspose file tools*
The moose likes Struts and the fly likes Question on Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Question on Validation" Watch "Question on Validation" New topic
Author

Question on Validation

Vineela Devi
Ranch Hand

Joined: Dec 20, 2003
Posts: 191
Hi All,

Please tell me is there any way of Enabling/Disabling Validation for a specific Field based on the Locale ?

Validation Framework has to be used for the validations.

Regards,
Vineela
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
There is not a way to do this with the "out of the box" validation rules. However, the struts Validation framework was created with extension in mind, so the solution would be to create your own validation rule that validates only for certain locales.

Here is a good article on the validation framework. Look in the section entitled "Creating Your Own Validators" for information on how to extend the validation framework.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question on Validation