Re: Input validation and repair

2005-12-18 Thread Dakota Jack
Paul's solution, in this regard, seems more design consistent. On 12/18/05, Dakota Jack <[EMAIL PROTECTED]> wrote: > > I would think that doing validation in your action would be > contra-indicated as a design matter, if you are doing Struts struts rather > than one of the other struts. > > On 12/

Re: Input validation and repair

2005-12-18 Thread Dakota Jack
I would think that doing validation in your action would be contra-indicated as a design matter, if you are doing Struts struts rather than one of the other struts. On 12/18/05, Rick R <[EMAIL PROTECTED]> wrote: > > On 12/18/05, Josh McDonald <[EMAIL PROTECTED]> wrote: > > > > What's the best plac

Re: Input validation and repair

2005-12-18 Thread Josh McDonald
Sweet, that's good to know. Not much use in an environment of such inertia and red tape tho :) I believe it'll be 1.1 for many moons after my contract is up -- "His comrades fought beside him, Van Owen and the rest... But of all the thompson gunners- Roland was the best." Josh McDona

Re: Input validation and repair

2005-12-18 Thread Paul Benedict
>>it should be an URL and patch it up (like > 'www.google.com' into >>'http://www.google.com/'). This is a bug which was fixed in Struts 1.2.8 by upgrading to commons validator 1.1.4. Paul __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the be

Re: Input validation and repair

2005-12-18 Thread Josh McDonald
Thanks for your feedback guys, what I've got is some URL validation (just regexes, nothing magic) but I've also got some smaller regexes to detect stuff that looks like it should be an URL and patch it up (like 'www.google.com' into 'http://www.google.com/'). For now I've just got it in the validat

Re: Input validation and repair

2005-12-18 Thread Rick R
On 12/18/05, Josh McDonald <[EMAIL PROTECTED]> wrote: > > What's the best place to put input validation and possible repair? I actually prefer to do the validation checks in my DispatchAction. The reason being is that, inevitably, you'll end up with a case where you'll have some Lists you'll wan

Re: Input validation and repair

2005-12-18 Thread Paul Benedict
Josh, You can use a combination of the Commons Validator plus any addition complex validation in the validate() method of the action form. No one forces you to use any method. However, the Commons Validator is sufficient for 95% of the data validation you need so make sure you take good advanta