File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1" Watch "Struts 1" New topic

Struts 1

chethan sk

Joined: Aug 09, 2008
Posts: 1
Hi Dave,
can you tell me the importance and significance of validatorActionForm and its applications?

Can you please tell me the scenarios it can be used?
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Since Dave's book is about Struts 2 I will take this one...

Do you understand the validation framework and ValidatorForm? The difference between the two form classes is that ValidatorForm is based of the name of the form and ValidatorActionForm is based off the name of the action. I do not recall ever using ValidatorActionForm, but the two give you a little more flexibility in your validation...say if you have multiple actions that use the same form and you want the validation to be different.

The second hit on a Google search looks pretty good:

- Brent
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63862

"chethan sk", please check your private messages for an important administrative matter.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Struts 1
jQuery in Action, 3rd edition