|
Stepping through the Struts 1.1 Validator |
|
Jakarta Struts is becoming increasingly popular as the de- facto MVC framework for servlet applications. Currently we’re all waiting for version 1.1 to be finally released. But, until this happens there’s no reason not to use the 1.1 Release Candidate, which is considered to be very stable, and at the API level it can be assumed to be identical to the final release.
One of the nice things in 1.1 is the inclusion of the Validator framework, which makes it much more effortless than before to implement simple form validation rules. In this article I'll show you how to use the new Validator. But first I’ll briefly go through how we did validation with Struts in the "old days", and then step up to how it’s done in 1.1, where the validation rules can be separated from the code by placing them in a configuration XML file.
To benefit from the article you need to have some experience with Struts, either version 1 or 1.1 RC. If you're new to Struts, I've written a couple of introductory articles, which quickly will bring you up to speed. They're listed in the resources section at the end of the article.
Click here for the article.
Trackback(0)
|