File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: Question about DynaActionForm
It's not a secret anymore!