jQuery in Action, 3rd edition
The moose likes Struts and the fly likes DynaValidatorForm vs DynaValidatorActionForm what's the difference? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DynaValidatorForm vs DynaValidatorActionForm what Watch "DynaValidatorForm vs DynaValidatorActionForm what New topic

DynaValidatorForm vs DynaValidatorActionForm what's the difference?

dave sag
Ranch Hand

Joined: Feb 17, 2003
Posts: 47
I am a bit confised about whn I would use a DynaValidatorActionForm vs a DynaValidatorForm. The only difference that I can see is that in the DynaValidatorActionForm (which extends DynaValidatorForm) is that in the validate method it calls

whereas in DynaValidatorForm the validate method calls

the key difference seems to be use of mapping.getPath() rather than mapping.getAttribute()
could someone explain what the differences are and why you would choose to use one over the other.

JSF / Jini / Javaspaces / JDO - all rock in my opinion.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
This might help:

Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
Amy Smith

Joined: Jul 26, 2001
Posts: 24
My understanding is that DynaValidatorActionForm will let you define different validations for different actions that share the same form. With DynaValidatorForm all actions that share the form must share the validation.

Amy Smith<br />Java Developer<br />Haworth, Inc.<br />amy.smith@haworth.com
I agree. Here's the link: http://aspose.com/file-tools
subject: DynaValidatorForm vs DynaValidatorActionForm what's the difference?
It's not a secret anymore!