O'Reilly logo

Learning Jakarta Struts 1.2: a concise and practical tutorial by Stephan Wiesner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Struts Validator and Plug-In Classes

The Struts Validator, in some form, has been available since the days of Struts 0.5. It was originally packaged as a developer contribution. Later, the core code was moved to the Jakarta Commons and a Struts-specific extension became part of Struts 1.1.

11.1 Verifying User Input with the Struts Validator

The implementation with three classes for each form, Book, BookForm, and BookAction, which we have used up until now, is relatively time-consuming. DynaForms help to lift the load somewhat, but there is still plenty of work left to do, which can be especially awkward for repetitive tasks that are boring and therefore error-prone.

The Validator, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required