You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Kenny MacLeod <ke...@chasmcity.com> on 2002/11/27 20:51:49 UTC

DynaActionMapping

Folks,

I've posted on this topic before, but I've had to revisit the problem
recently, and been doing a bit more investigation on it.  I need a
ActionMapping subclass which can take arbitrary <set-property> elements, and
therefore the standard mechanism of using bean properties isn't going to cut
it.

In short, what I need is a "DynaActionMapping" - a DynaBean-based version of
ActionMapping.  I've been browsing through the code for DynaActionForm to
see how that works, and I'm unsure if I can adopt that pattern to use for
ActionMappings.

If I understand the code for DynaActionForm correctly, it takes the
FormBeanConfig data and uses this to construct a DynaClass which reflects
those properties.  The form bean (which implements DynaBean) is then
constructed using this DynaClass.  Could I use this technique to create a
DynaActionMapping?  I can't find an equivalent hook in the code to make this
work, without modifying the Struts code to allow for it.

Any thoughts?
cheers
kenny






--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>