This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1" Watch "Struts 1" New topic
Author

Struts 1

chethan sk
Greenhorn

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:
http://www.laliluna.de/struts-validatoraction-form-tutorial.html

- Brent
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60045
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 1
 
Similar Threads
Programmers Available...
Modulo operator
know all the context names within the web container
Total search fails
restrict the file.