wood burning stoves 2.0*
The moose likes Struts and the fly likes Question about DynaActionForm 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 "Question about DynaActionForm" Watch "Question about DynaActionForm" New topic

Question about DynaActionForm

David Nelson

Joined: Nov 13, 2003
Posts: 22
Hi, all, i'm a newbie in struts, and I'm reading a app code, here is a question about DynaActionForm:
in form-beans definition part, one is:
<form-bean dynamic="true" name="itemDetailForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="view" type="an inner action" />

correspondent code in the inner action is:
ItemDetailView itemDetailView = serviceImpl.getItemDetailView(itemId);

( (DynaActionForm) form).set("view", itemDetailView);

I need to know what the difference is between the way and traditional way(result set is ferried by a request or a session)
, what are the merit and demerit in this way?

Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

There is a Struts Action inside the ActionForm?!

A good workman is known by his tools.
It is sorta covered in the JavaRanch Style Guide.
subject: Question about DynaActionForm
Similar Threads
DynaActionForm form property type of file input in struts-config.xml
accessing dynaactionform in action class
can't get indexed form property to work.
Struts and Popup
Getting error in trying to display form.