I would like to be able to specify for an Action the validation that should
be performed on it.

I can't use a ValidatorActionForm as this is an existing application with
much baggage and I won't be able to change the inheritance hierarchy of the
existing Forms. And in any case I will want to be able to occassionally
share the validation amongst several actions which is not achievable using
the ValidatorActionForm without copying the validation (something I am loath
to do).

It seems to me that it makes sense to specify the validation to use, on the
ActionConfig. Ie instead of specifying whether to validate the Request or
not (on the ActionConfig), instead specify which validation to apply. This
would allow the most flexibility as it removes the need for a dinstinction
to be made between either a ValidatorForm or ValidatorActionForm.

Is there any mechanism (other than using a ValidatorActionForm) that will
allow me to do this?

We're using currently Struts-1.1 though I could probably push for a move
forward reasonably readily.


William

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to