[ 
http://issues.apache.org/struts/browse/STR-2956?page=comments#action_38329 ] 
            
Paul Benedict commented on STR-2956:
------------------------------------

Good points in paragraph one. I don't know if anyone has ever done strongly 
typed forms in an action method. I never have seen it discussed. It's possible. 
This is definitely not a solution for DynaBeans.

I agree the complexity would be raised. The reason I find the complexity 
appealing is because I use non-Dyna forms 99% of the time. The casting could be 
one line I can remove in about 30 places :-) I got my idea off of Spring 
because Spring can auto-dect types, and I find that kind of stuff appealing. I 
personally rather work with strict typing than casting from generics.

> Strongly typed forms in Action dispatching
> ------------------------------------------
>
>                 Key: STR-2956
>                 URL: http://issues.apache.org/struts/browse/STR-2956
>             Project: Struts 1
>          Issue Type: Improvement
>    Affects Versions: 1.0 Final
>            Reporter: Paul Benedict
>             Fix For: 1.3.6
>
>
> Actions always cast a form into the intended subclass. It would be nice to 
> allow the the dispatch classes to match up against the strongly typed 
> methods. Example:
> private ActionForward doMyAction(ActionMapping mapping, MyForm form, 
> HttpServletRequest request, HttpServletResponse response);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to