It's not a secret anymore!
The moose likes Struts and the fly likes DynaActionForm and Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DynaActionForm and Validation" Watch "DynaActionForm and Validation" New topic

DynaActionForm and Validation

Maneesh Chauahn
Ranch Hand

Joined: Mar 06, 2006
Posts: 48
Hi Everyone,
I am looking the concept dynaActionForm in the Struts that help a developer to reduce the number of the ActionForm for each form.

As in the validate() method of the Action Form there is validation of formfields. But we are using the DynaActionForm so where should the validation of the form fields ...........

Means, in case of DynaActionForm where should the validation of FormField done ................

Thanks in advance for the answer

Periakaruppan Thiagarajan
Ranch Hand

Joined: Jul 26, 2005
Posts: 65

They are many ways to validate the field attributes which are part of DynaActionForm. The following links might help you to achieve this.

Validation in action class#

Using Validator Plug - In

Pallavi ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 76
When U want to validate dynaActionForm , DynaValidatorActionForm would be very useful i feel.
I've used that in my project, validations are so simple and no need to worry abt them at all.
here are the links if u want to read abt...
I agree. Here's the link:
subject: DynaActionForm and Validation
jQuery in Action, 3rd edition