• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Performance comparison of ActionForm and DynaForm

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to know that whether there is any difference in performance of ActionForm and DynaForm or both are same and which is easier to maintain.
Thanks
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I haven't run any tests on this, but my suspicion is that there is very little if any difference in performance between the two types of Actionform bean.

Personally, I don't like DynaForm beans. If you have a good IDE, it's just as easy to write an ActionForm bean as it is to provide the XML for a DynaForm bean. Once you have an ActionForm bean, you have much more flexibility. For example, you can change a getter to do something other than just retrieve the property. Properties of ActionForm beans are also much easier and more intuitive to retrieve than those of DynaForm beans. Example:

as opposed to

In the first example, the compiler will tell me if I spell userName wrong. It won't tell me if I spell it wrong in the second example.

About the only place I use the DynaForm is when I'm creating a quick-and-dirty prototype application.
reply
    Bookmark Topic Watch Topic
  • New Topic