You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mark Galbreath <ma...@qat.com> on 2003/05/23 23:51:51 UTC
[FRIDAY] Oh well
Thanks, guys for the interesting discussion on the underpinnings of Struts
and general Java programming, but I gotta go (Friday night and all...don't
want Andrew to out-do me in 24 hours). I remain unclear on the usage of
DynaActionForm in JSP, but perhaps Ted will address that in depth in the
next book. In the meantime, in the absence of clear direction, I guess I
will continue to use ActionForms, which, in my opinion, suck, for large
apps.
Have a great weekend! For you guys on the West Coast, blow me! I'm
drinking a beer! :-)
mark
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [FRIDAY] Oh well
Posted by Ted Husted <hu...@apache.org>.
I've updated the documentation with some of the points we passed back
and forth Friday.
Used in a JSP in the conventional way, switching over to DynaActionForm
is transparent. You can't contruct them yourself, but it is
unconventional for a Struts JSP to construct its own ActionForm. That
responsibility should be left to the controller. Used in an Action, the
references to the DynaActionForm properties do change, since the
dyna-properties are stored in map and only appear to be properties
through reflection. But if you are passing off the DynaActionForm to a
business bean (as intended), this shouldn't matter.
DynaActionForms good: I don't use ActionForms except to pass the data
along to another bean.
DynaActionForms bad: I use ActionForm properties to implement my Action.
As a working reference, the MailReader example application uses
DynaActionForms.
-TEd.
Mark Galbreath wrote:
> Thanks, guys for the interesting discussion on the underpinnings of Struts
> and general Java programming, but I gotta go (Friday night and all...don't
> want Andrew to out-do me in 24 hours). I remain unclear on the usage of
> DynaActionForm in JSP, but perhaps Ted will address that in depth in the
> next book. In the meantime, in the absence of clear direction, I guess I
> will continue to use ActionForms, which, in my opinion, suck, for large
> apps.
>
> Have a great weekend! For you guys on the West Coast, blow me! I'm
> drinking a beer! :-)
>
> mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
--
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org