This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DynaActionForm and Validation
 
Similar Threads
anybody who know struts' DynaActionForm?
validator-rule.xml how to guarantee the text-field is a double?
multiple forms, one action class, using validator
For struts form validation
What is DynaValidatorForm