Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1

 
chethan sk
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64971
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"chethan sk", please check your private messages for an important administrative matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic