Hello All,

As I am working through the details of my first Struts application I am getting 
a little stuck on the Validator idea.  It would seem that I can implement each 
form in my application as EITHER an ActionForm or a ValidatorForm.  The action 
form has a validate method included for the purpose of validating input on a 
small scale (apearantly).  From what I can gather, the ValidatorForm is used to 
perform more complex validation.

It seems then that the ValidatorForm begins to encroach on business logic (this 
is supported by the fact that ValidatorForm is not required for a Struts 
application).  It seems that any complex validations should be left to the 
business Model, and not included in the Controller or View.  It is entirely 
possible that I am missing something.  What are your opinions?  

How many of you use ValidatorForm instead of or in conjunction with ActionForm?

Do you see it providing some feature outside of the business model and specific 
to the Controller or View?

Daniel

Reply via email to