David Winterfeldt wrote:
> Nic Hobbs and I have both volunteered for the Standard
> (Server Side) Validations and Ted Husted, Nic Hobbs,
> Spencer Smith and I have volunteered for the Client
> Validations (JavaScript). Ted has been using a
> validation framework I've done on a project
I'm real happy with David's framework and would +1 it as Struts 1.1
component (I'm already touting it as a standard option in the new Strut
by Strut piece.)
One thing I had to do myself was to add some validations and
transformations that were outside the scope of regular expressions. For
example, forcing a string property to uppercase, validating the general
format of a credit card number, checking that a date is current. Of
course, I deployed these in both Javascript and then client-side as part
of the ActionForm validation. My only thought would be whether we want
to provide support for extending the package for custom, non-Regex
validations, and perhaps transformations. If so, that leads to the idea
of whether we might want a seperate helper package that could handle the
grunt-work and plug into the Validator (see also "Proposed feature: Bean
propertytransformations").
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/