This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
xml validation with the java 5
problem with Date validations thru Validator-rules.xml and Validation.xml
java.io.Serializable;
validating forms
Validation interceptor