Clark
Using the Validator framework in struts
1 Answer(s)      4 years and 10 months ago
Posted in : Struts

What is the Benefits of Using the Validator framework in struts ?

Advertisement
View Answers

November 19, 2010 at 6:37 PM


Hi friends,

Defination of Validator Framework :

Struts Framework provides the functionality to validate the form data. It can be use to validate the data on the users browser as well as on the server side. Struts Framework emits the java scripts and it can be used to validate the form data on the client browser. Server side validation of the form can be accomplished by sub classing your From Bean with DynaValidatorForm class.

The Validator framework was developed by David Winterfeldt as third-party add-on to Struts. Now the Validator framework is a part of Jakarta Commons project and it can be used with or without Struts. The Validator framework comes integrated with the Struts Framework and can be used without doing any extra settings.

struts validator framework has the following benifits...

1) A single definition of validation rules for an application.

2) Validation rules are loosely coupled to the application.

3) Server-side and client-side validation rules can be defined in one location.

4) Configuration of new rules and/or changes to existing rules are made simpler.

5) Supports Internationalization.

6) Supports regular expressions.

7) Can be used for both Web-based and standard Java applications.

8) Promotes a declarative approach rather than a programmatic one.

Thanks.










Related Tutorials/Questions & Answers:
Using the Validator framework in struts
Using the Validator framework in struts   What is the Benefits of Using the Validator framework in struts
Fixed Value check using struts validator framework
Fixed Value check using struts validator framework  Hi All, can anyone tell me how to use struts validator framework for fixed value check. eg. country='India'; Thanks in advance
Advertisements
Setup validator framework in Struts
Setup validator framework in Struts  How to Setup validator framework in Struts
Struts Validator Framework
Struts Validator Framework  What is Struts Validator Framework
validator framework work in Struts
validator framework work in Struts  How does validator framework work in Struts
sing validator framework work in struts
sing validator framework work in struts  How does client side validation using validator framework work in struts
Struts Validator Framework
Struts Validator Framework     ... Framework. In this lesson you will learn how to use Struts Validator Framework... to Validator Framework Struts Framework provides the functionality to validate the form
USING THE VALIDATOR FRAMEWORK
STRUTS-VALIDATOR FRAMEWORK USING THE VALIDATOR FRAMEWORK       Validator framework requires two XML files, namely, alidator... of the tutorial is on the method of using the Validator framework, let us skip
validation using validator-rules.xml - Struts
validation using validator-rules.xml  Hi I am trying to validate my form using Validator-rules.xml. I am using Eclipse 3.0 Struts 1.1 and Tomcat 5.0 I have an index.jsp for which I have to validate using validator-rules.xml
Struts Validator Framework - lab oriented lesson
STRUTS-VALIDATOR FRAMEWORK R.S.Ramaswamy ( developeriq..Oct-2005... framework.In this first part, a simple struts demo with non-framework based... of Validator framework, with a lab-oriented lesson. Since its introduction in 2001
Struts 2 double validator
Struts 2 double validator       The Double validator of Struts 2 Framework checks if the given input is double... that have to validate. Required if using int-Validator Syntax otherwise
XML files used in Validator Framework?
XML files used in Validator Framework?  Give the Details of XML files used in Validator Framework
Struts 2 Date Validator
Struts 2 Date Validator       The Date validator in the Struts 2 Framework checks whether the supplied date lies... demonstrates how to use the date validator to check the input range. [ NOTE: If date
Struts 2 E-mail Validator
Struts 2 E-mail Validator       The email validator in  Struts 2 Framework checks whether a given String.... It is required only if the user is  using Plain-Validator Syntax
Struts 2 RequiredString validator
Struts 2 RequiredString validator       This section discusses RequiredString validator of Struts 2 framework... if using Plain-Validator Syntax otherwise not required. trim
URL Regular Expression for Struts Validator
URL Regular Expression for Struts Validator  I want to know how to validate a url link in struts validation.xml. Please share me the regular expression for url link validation
URL Regular Expression for Struts Validator
URL Regular Expression for Struts Validator  I want to know how to validate a url link in struts validation.xml. Please share me the regular expression for url link validation
Struts 2 Validation (Int Validator)
of Struts 2 framework: Conversion Validator Date Validator Double...Struts 2 Validation (Int Validator)       Struts 2 Framework provides in-built validation functions to validate user
Struts - Framework
it is better to go for Struts or any other framework. While if you are working... then it is not necessary to use struts or any other framework. Although various MVC frameworks are being used in production, but Struts is the most popular framework than
struts - Framework
struts  i m doing clientside validation.using validation.xml.and using the example given by roseindia. but geting error... be defined in the Commons Validator configuration when dynamicJavascript="true
Struts Tutorial
, struts integration with other framework, Struts Validator Framework. What is Struts ? Struts is an open source MVC based framework for developing web..., internationalization, error handling, tiles layout etc. Struts framework is also
Struts - Framework
project and is open source. Struts Framework is suited for the application... using the View component. ActionServlet, Action, ActionForm and struts-config.xml... struts application ? Before that what kind of things necessary
struts - Framework
struts  can show some example framework of struts  Hi Friend, Please visit the following links: http://www.roseindia.net/struts/ http://www.roseindia.net/struts/struts2/ Hope that the above links
Struts - Framework
in any other framework or else before starting struts. you just need to have... struts application ? Before that what kind of things necessary... that you are going to learn Struts. Just refer "http://www.roseindia.net
Struts framework
Struts framework  How to populate the value in textbox of one JSP page from listbox of another JSP page using Struts-html tag and java script
Struts framework
Struts framework  How to populate the value in textbox of one JSP page from listbox of another JSP page using Struts-html tag and java script
struts - Framework
Struts design pattern  Please explain Struts design pattern
struts - Framework
Struts Spring Hibernate Integration  struts spring hibernate integration tutorial
struts - Framework
struts  Tag libs in struts
Struts 2 Url Validator
Struts 2 Url Validator       The URLValidator of Struts 2 Framework checks whether the String contained within... if using Plain-Validator Syntax  urlVaLidationAction-validation.xml
struts - Framework
Struts flow of execution diagram  What is the structure of struts flow ..can you show it with the help of diagram