aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "DynaActionForm and Validation" Watch "DynaActionForm and Validation" New topic
Author

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

Regards,
Maneesh
Periakaruppan Thiagarajan
Ranch Hand

Joined: Jul 26, 2005
Posts: 65
Maneesh,

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

Thanks,
Pk
Lavanya ch
Ranch Hand

Joined: Dec 16, 2004
Posts: 75
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...
http://www.oracle.com/technology/oramag/oracle/04-jan/o14dev_struts.html

http://struts.apache.org/struts-doc-1.2.4/userGuide/dev_validator.html
 
Consider Paul's rocket mass heater.
 
subject: DynaActionForm and Validation
 
Similar Threads
For struts form validation
multiple forms, one action class, using validator
validator-rule.xml how to guarantee the text-field is a double?
What is DynaValidatorForm
anybody who know struts' DynaActionForm?