aspose file tools*
The moose likes Struts and the fly likes Advantages of Dyna Forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Advantages of Dyna Forms" Watch "Advantages of Dyna Forms" New topic
Author

Advantages of Dyna Forms

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Are there any advantages to using the Dynammically created Form Beans other than not having to write all those getter and setter methods? I like them, I am just curious as to other key benefits.
Thanks.


GenRocket - Experts at Building Test Data
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
I use them if I think the properties of the bean are likely to change. It doesn't require a recompile to make changes to the properties.


Matthew Phillips
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
One of the nice things about them is that for people who are not all that familiar with Struts, it may be a bit easier to define your beans via XML. I have found this to be the case when working on development teams with folks who are just beginning to get a grasp on Struts.
Another benefit is that the class DynamicActionForm implements org.apache.commons.beanutils.DynaBean, allowing the developer quick use to the Jakarta Commons Bean Introspection Utilities libraries. This allows the developer to easily write generic ways of handling their form beans, regardless of what the bean's properties are. It's funny you bring this up because as we speak I'm staring at a blank Word document, getting ready to write an article on this library.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Jason Menard:
It's funny you bring this up because as we speak I'm staring at a blank Word document, getting ready to write an article on this library.

If the article is not for the Newsletter, can you pass it on to me when you complete it. I would like to read it.
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
Originally posted by Gregg Bolinger:
If the article is not for the Newsletter, can you pass it on to me when you complete it. I would like to read it.

It would be nice if I get it done in time for the Newsletter, but in any case I will let you take a look at it when I'm done. (if I was unclear btw, I'm talking about an article on the Commons BeanUtil library, not DynaForms)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Advantages of Dyna Forms