Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DynaBeans can be treated as a regular Java object, if the particular implementation contains a getMap() method. This method lets OGNL, the Struts 2 expression language, know how to access and set data. DynaBean variants like the LazyDynaBean can create themselves on-the-fly, where other more static types might need to be created in your Action's constructor before being used. However, one of the benefits of Struts 2 over Struts 1.x is that you can use your existing JavaBeans directly without the need of an ActionForm-type wrapper, so you might try bypassing the familiar DynaBean route.

Next: SAF2 ActionContext Primer

...

This material originally adopted from: http://wiki.apache.org/struts/IssuesAndSolutions.