RE: server-side, java-based validation rules for struts..

2001-06-25 Thread David Winterfeldt
on > offering a nice solution in order to preserve the > real look of a reg. exp. > in an XML file? > Fr. > > -Original Message- > From: David Winterfeldt > [mailto:[EMAIL PROTECTED]] > Sent: 25 June 2001 18:11 > To: [EMAIL PROTECTED] > Subject: RE: server

RE: server-side, java-based validation rules for struts..

2001-06-25 Thread Rey Francois
PROTECTED] Subject: RE: server-side, java-based validation rules for struts.. Regular expressions should be: ^"\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$" Properties file version ^\"\\(?(\\d{3})\\)?[-| ]?(\\d{3})[-| ]?(\\d{4})\"$ David --- David Winterfeldt <[EMAIL PROTEC

Re: server-side, java-based validation rules for struts..

2001-06-25 Thread Levi Cook
rday, June 23, 2001 9:51 PM Subject: Re: server-side, java-based validation rules for struts.. > > Slightly more exact mechanics for registering the listeners are: > > 1. Instantiate the form-bean > > 2. Instantiate zero to many listeners > > 3. Register each listener

RE: server-side, java-based validation rules for struts..

2001-06-25 Thread Cook, Levi
d register. -- Levi > -Original Message- > From: Jonathan [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 25, 2001 9:18 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: server-side, java-based validation rules for struts.. > > > I thought that

RE: server-side, java-based validation rules for struts..

2001-06-25 Thread Akin Bolarinwa
onday, June 25, 2001 9:24 AM Subject: RE: server-side, java-based validation rules for struts.. > > Cook, Levi writes: > > IMHO, expressing rules using first class Java objects *can* be just as > > flexible as defining rules in an XML file. > > > > The analog to cha

RE: server-side, java-based validation rules for struts..

2001-06-25 Thread David Winterfeldt
Regular expressions should be: ^"\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$" Properties file version ^\"\\(?(\\d{3})\\)?[-| ]?(\\d{3})[-| ]?(\\d{4})\"$ David --- David Winterfeldt <[EMAIL PROTECTED]> wrote: > When you are doing regular expressions you can > basically just cut and paste them fro

RE: server-side, java-based validation rules for struts..

2001-06-25 Thread David Winterfeldt
When you are doing regular expressions you can basically just cut and paste them from an example and escape out the few XML sensitive characters, but you have to escape out the escape characters in a java properties file which I think makes something that is already hard to read even more unreadab

Re: server-side, java-based validation rules for struts..

2001-06-25 Thread Jonathan
I thought that the point was to NOT have to use a property editor, but rather an xml file - Original Message - From: "Nick Afshartous" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, June 25, 2001 9:24 AM Subject: RE: server-side,

RE: server-side, java-based validation rules for struts..

2001-06-25 Thread Nick Afshartous
Cook, Levi writes: > IMHO, expressing rules using first class Java objects *can* be just as > flexible as defining rules in an XML file. > > The analog to changing a value in an XML file is using a property editor to > change values stored in a JavaBean (thus avoiding recompiling). The ups

Re: server-side, java-based validation rules for struts..

2001-06-23 Thread Martin Cooper
r's aren't any better > > at answering > > > these questions than we are :) > > > > > > This point introduces the next responsibily I planned on handing the > > > struts-controller: handling PropertyVetoExceptions. In > > short, I'd like it > > to > > > basically turn these exceptions in

RE: server-side, java-based validation rules for struts..

2001-06-22 Thread Cook, Levi
evi > -Original Message- > From: Nick Afshartous [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 22, 2001 12:44 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: server-side, java-based validation rules for struts.. > > David Winterfeldt writes: > > I d

RE: server-side, java-based validation rules for struts..

2001-06-22 Thread ABolarinwa
PROTECTED]; [EMAIL PROTECTED] Subject: RE: server-side, java-based validation rules for struts.. David Winterfeldt writes: > I don't think there would be anything wrong with your > idea, but I think it is a little more flexible keeping > the validation separate from the ActionForm.

RE: server-side, java-based validation rules for struts..

2001-06-22 Thread Nick Afshartous
David Winterfeldt writes: > I don't think there would be anything wrong with your > idea, but I think it is a little more flexible keeping > the validation separate from the ActionForm. I > started working on a validation framework, but I put > the info in an xml file. I would rather chang

RE: server-side, java-based validation rules for struts..

2001-06-21 Thread David Winterfeldt
Maybe I'm not doing that > yet, but its where I'm trying to go :) > > Respectfully, > Levi Cook > > > -Original Message- > > From: David Winterfeldt > [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, June 21, 2001 11:17 AM > > To: [EMAIL PROTECTED] > >

RE: server-side, java-based validation rules for struts..

2001-06-21 Thread Cook, Levi
. Maybe I'm not doing that yet, but its where I'm trying to go :) Respectfully, Levi Cook > -Original Message- > From: David Winterfeldt [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 21, 2001 11:17 AM > To: [EMAIL PROTECTED] > Subject: Re: server-side, java-b

Re: server-side, java-based validation rules for struts..

2001-06-21 Thread David Winterfeldt
zing the source code. David --- Levi Cook <[EMAIL PROTECTED]> wrote: > comments below... > > - Original Message - > > From: "Jonathan" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Wednesday, June 20, 2001 12:55 PM

RE: server-side, java-based validation rules for struts..

2001-06-21 Thread Cook, Levi
comments below... > -Original Message- > From: Jonathan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 21, 2001 10:38 AM > To: [EMAIL PROTECTED] > Subject: Re: server-side, java-based validation rules for struts.. > > So at some point you will gat a handle to th

Re: server-side, java-based validation rules for struts..

2001-06-21 Thread Jonathan
<[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 11:20 AM Subject: RE: server-side, java-based validation rules for struts.. > Yes, the end result is ActionForms with Listeners registered prior to the > ActionServlet populating our form with the users request values. > > Slightl

RE: server-side, java-based validation rules for struts..

2001-06-21 Thread Cook, Levi
explanation. Levi > -Original Message- > From: Jonathan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 21, 2001 9:10 AM > To: [EMAIL PROTECTED] > Subject: Re: server-side, java-based validation rules for struts.. > > > So you are saying that when an ActionForm is instan

Re: server-side, java-based validation rules for struts..

2001-06-21 Thread Jonathan
Forms with their listeners already registered. Did I get it? - Original Message - From: "Levi Cook" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 11:44 AM Subject: Re: server-side, java-based validation rules for struts.. > I guess that&

Re: server-side, java-based validation rules for struts..

2001-06-21 Thread Levi Cook
/> > > > > > > - Original Message - From: "Jonathan Asbell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 21, 2001 4:42 AM Subject: Re: server-side, java-based validation rules for struts.. > Levi, you lost

Re: server-side, java-based validation rules for struts..

2001-06-21 Thread Jonathan Asbell
sage - From: "Levi Cook" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 10:02 PM Subject: Re: server-side, java-based validation rules for struts.. > comments below... > > - Original Message - > > From: "Jonathan&

Re: server-side, java-based validation rules for struts..

2001-06-20 Thread Levi Cook
comments below... - Original Message - > From: "Jonathan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 20, 2001 12:55 PM > Subject: Re: server-side, java-based validation rules for struts.. > > Hello Levi. > I read you

RE: server-side, java-based validation rules for struts..

2001-06-20 Thread Cook, Levi
I'll try to respond inline with your messages. > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 20, 2001 3:14 PM > To: [EMAIL PROTECTED] > Subject: Re: server-side, java-based validation rules for struts.. > > > +1 &g

Re: server-side, java-based validation rules for struts..

2001-06-20 Thread Ted Husted
+1 David Winterfeldt wrote: > I don't think there would be anything wrong with your > idea, but I think it is a little more flexible keeping > the validation separate from the ActionForm. I > started working on a validation framework, but I put > the info in an xml file. I would rather change

RE: server-side, java-based validation rules for struts..

2001-06-20 Thread David Winterfeldt
I don't think there would be anything wrong with your idea, but I think it is a little more flexible keeping the validation separate from the ActionForm. I started working on a validation framework, but I put the info in an xml file. I would rather change a value in an xml file than having to re

Re: server-side, java-based validation rules for struts..

2001-06-20 Thread Jonathan
g you have validated via some algorithm etc.etc. Check out some of the various posts about validation and you will see what I mean. ;^> - Original Message - From: "Cook, Levi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 20, 2001 3:48 PM Subject: RE:

RE: server-side, java-based validation rules for struts..

2001-06-20 Thread Cook, Levi
I'm guessing my aforementioned ideas on validation fall into one of the following categories: 1. its was a really bad idea, not worth commenting or elaborating on 2. i didn't provide a clearly articulated idea to review 3. they're fine and everyone's really busy, and i'm impatient I'll a