Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about DynaActionForm  RSS feed

 
David Nelson
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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" />
</form-bean>

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?

Cheers.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a Struts Action inside the ActionForm?!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!