Re: Volunteer for Validation Framework

2001-03-01 Thread Craig R. McClanahan

Spencer Smith wrote:

 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.


I think it is quite reasonable to optionally generate JavaScript for client side
validations of the things that make sense to validate there (in addition to the
server side validation code being automatically generated/processed as well,
because you can never trust a client to actually do the tests for you :-).  I'll
add your name to the list of volunteers for this, and you might want to join
STRUTS-DEV (if you have not already) to participate in the upcoming discussions
on implementing this feature.


 Spencer


Craig



 - 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/
 
 




Re: Volunteer for Validation Framework

2001-02-27 Thread Spencer Smith

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/






Volunteer for Validation Framework

2001-02-25 Thread David Winterfeldt

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/