Yansheng,

Since ActionForms are intended to be reused across multiple actions, you
might have different validation requirements depending on the context that
the ActionForm is being used.

One Action might require a certain field but that field may not be required
for another Action that is using the same ActionForm.

Hope this helps.

-----Original Message-----
From: Yansheng Lin [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 26, 2003 11:52 AM
To: 'Struts Users Mailing List'
Subject: Difference between ValidatorForm and ValidatorActionForm?



I kind of understand it.  ValidatorForm validates the form and
ValidatorActionForm validates the form based on action path.  But why would
you
prefer one over the other?  I mean you can achieve almost the same effect
with
either.

Thanks!


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

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

Reply via email to