Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about DynaActionForm

 
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?!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic