Home arrow JavaScript arrow Validators: Introducing Struts Validator Framework

Validators: Introducing Struts Validator Framework

Validation is an important part of many web applications. Input can be validated on the client side or the server side. The Validator framework can be used to simplify input validations on both sides. This tutorial explains how.

Author Info:
By: A.P.Rajshekhar
Rating: 4 stars4 stars4 stars4 stars4 stars / 99
August 31, 2005
  1. · Validators: Introducing Struts Validator Framework
  2. · Validator Framework-What is it?
  3. · Validator Framework- A Real world Example
  4. · Provide the appropriate ActionForm Class

print this article

Validators: Introducing Struts Validator Framework
(Page 1 of 4 )

Client side validation is the holy grail of web development. Any web application that does not utilize forms to gather user information would be a rarity. For a developer, web forms are synonymous with input validation. The process of validating the input can be carried out at two places -- either at the client side or at the server-side.

Server-side validation is not a popular choice in many situations due to the round trip factor. That means the data is validated at server-side and the result is sent to the client. So just to validate, an extra request-response cycle is required. Hence, client-side validation is preferred over server-side validation.

The arrival of JavaScript gave the needed boost to client-side validation. But as the number of validations to be performed on the entry fields increased along with the number of fields to be validated, JavaScript based validations became complex. Script libraries were built to contain this complexity. But still something was amiss. The web development itself was undergoing a transformation. A declarative approach based on XML was replacing the programmatic approach, especially in enterprise application. And when the platform is J2EE, where the declarative approach is a norm, how can input validations be left behind to be done solely through JavaScript?

It was in such a situation that the Validator framework came to the forefront. So, what is the Validator framework and how can it be used to simplify input validations -- both the client as well as the server-side? I will be discussing these aspects in this part of tutorial.

blog comments powered by Disqus

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials