Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags:

Sponsored Links



Searching for struts validator tutorial

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 31-07-2009
fldrice's Avatar
Member
 
Join Date: May 2008
Posts: 27
Searching for struts validator tutorial

Hi,

I am just searching for a good tutorial for Struts Validator.

If you guys know of any good tutorial on struts validator framework do let me know.

Thanks in advance
fldrice
Reply With Quote
  #2  
Old 31-07-2009
dwhit6's Avatar
Member
 
Join Date: Apr 2008
Posts: 23
Re: Searching for struts validator tutorial

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.

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.
Reply With Quote
  #3  
Old 31-07-2009
Xeusion's Avatar
Member
 
Join Date: May 2008
Posts: 44
Re: Searching for struts validator tutorial

Struts Validator Framework Tutorial with Example

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.

Using Validator Framework

Validator uses the XML file to pickup the validation rules to be applied to an form. In XML validation requirements are defined applied to a form. In case we need special validation rules not provided by the validator framework, we can plug in our own custom validations into Validator.

The Validator Framework uses two XML configuration files validator-rules.xml and validation.xml. The validator-rules.xml defines the standard validation routines, these are reusable and used in validation.xml. to define the form specific validations. The validation.xml defines the validations applied to a form bean.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Searching for struts validator tutorial"
Thread Thread Starter Forum Replies Last Post
Struts 1 VS Struts 2 PsychoVillan Software Development 6 29-03-2011 01:23 AM
Validator issue in Adobe CS5 Jesus2 Windows Software 5 15-07-2010 02:46 AM
Want to know about CSE HTML Validator Lite Carlos16 Windows Software 4 10-03-2010 10:05 AM
How to define HTML Validator and services provided by HTML Validator Aldous Software Development 3 22-09-2009 02:12 PM
Windows XP validator amautotech Windows XP Support 8 02-06-2009 09:58 AM


All times are GMT +5.5. The time now is 11:15 AM.