On Mon, Dec 30, 2002 at 01:32:08PM +0100, Rickard Öberg wrote: > Joseph Ottinger wrote: > >>* Validation. Clunky design, and not enough loosely coupled to the action. > > > >I personally *like* how webwork currently handles validation. This is one > >of Struts' weakest points, and webwork's solution rocks. How would you > >suggest it be done? > > There needs to be a way to separate the validation from the action, so > that different validation rules can be applied to an action, and also > implemented with different strategies (using formproc or regexps or > whatever).
As I already wrote in my first post, I think action validation is bound to the action. It's the action that "knows" that there is no sense in extraction a root of a negative number (speeking of real numbers), so the action defines the contract. -billy. -- Meisterbohne Söflinger Straße 100 Tel: +49-731-399 499-0 eLösungen 89077 Ulm Fax: +49-731-399 499-9
msg00872/pgp00000.pgp
Description: PGP signature