Victor Salaman wrote:

> formproc has the concept of defining a form in an xml file, so I created 
> a GenericValidator class that can be invoked from any action that 
> extends ActionSupport, like this.. inside your doValidation() just have 
> a single line:
> 
> GenericValidator.validate(this,formName,getLocale());
> 
> This simple call will validate your form according to your formproc form 
> definition based on the formName you specify. Upon returning, if there 
> was an error, error messages (if any) will be populated inside the 
> action just like if you had done the validation manually.
> 
> I have a special lightweight version of formproc that doesn't use any of 
> the dependencies of the original one (as the original one requires 
> edenlib, xerces, jdom [blah!]).
> 
> This is all part of my personal stash, so if you have no use for this or 
> find that reinventing the wheel is much better, that's ok :)

It sounds very interesting. Go ahead and add it to WW CVS under 
webwork.formproc package.

/Rickard

-- 
Rickard �berg
Author of "Mastering RMI"
Chief Architect, TheServerSide.com
   The Middleware Company - We Build Experts!


_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to