I have a lot of experience using validation.  I am of the opinion that if
possible validation should be done client-side using javascript.  Is there a
way to implement this by extending Struts?  If so, I would be very
interested in helping.  Currently, I am working on expanding Struts Custom
Tag Library.  I've added Pattern, IsRequired, and errorMessage to
Struts-html.tld and modified the Struts source files to accomodate for this.
It uses pattern because I am using Perl5 regular expressions to send the
validation parameterss to the Form bean.

Spencer

----- Original Message -----
From: David Winterfeldt <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, February 25, 2001 5:35 PM
Subject: Volunteer for Validation Framework


> I'd like to volunteer to help on client and server
> side validation listed on the Struts 1.1 To Do list.
>
> I added some basic support for constants (global and
> on the Locale level).  I also made the validations
> more configurable.  You can define what class and
> method should do a type of validation.  I added a
> depends attribute to the validation definitions so you
> could say that checking for an integer shouldn't be
> done until required validations are done.  It's
> probably needs some work on the logic, but it seems to
> be working on the basics.  Also a number of objects
> could be created and cached somewhere.
>
> I also started on some methods to do basic type
> checking.  It's just some numeric primitives right now
> and a date.  I added an example page to the sample
> webapp doing the type checking.
>
> The code and sample web app is on my site.  I have a
> basic explanation, but I think it's lacking since I've
> added so much, but the examples should help.
> http://home.earthlink.net/~dwinterfeldt/
>
> David
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
>

Reply via email to