>>>>> "Michael" == Michael Press <Press> writes:

    Michael> I just did this.  I based my solution on the Dynamic Properties solution 
by
    Michael> Kevin Wang
    Michael> 
(http://www.mail-archive.com/struts-user@jakarta.apache.org/msg01374.html),
    Michael> but I needed to do it without modifying/extending Struts itself.

    Michael> I created a BaseActionForm that my ActionForms extend.  The Base class 
has a
    Michael> method that takes the HTTP request, and for each parameter in the request
    Michael> that doesn't have a setter method in the form (determined via reflection),
    Michael> it adds it to a hashtable.  It also provides methods to retrieve the
    Michael> hashtable or one named dynamic property.

    Michael> Then, my Action classes first call form.setDynamicMethods(request), and 
then
    Michael> they can retrieve the parameters from the known getter methods or from
    Michael> getDynamicProperty() or getDynamicProperties().

I could be mistaken, but isn't this basically what the recently added Dynamic
Action Form does?

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to