Results 1 to 2 of 2

Thread: DelegatingActionProxy

  1. #1
    Join Date
    Aug 2004
    Location
    London, UK
    Posts
    36

    Default DelegatingActionProxy

    Hello,

    What's the point of using DelegatingActionproxy instead of simply WebApplicationContextUtils.getWebApplicationContex t(servletContext); inside every action? I see many cons:

    There is one more xml file (action-servlet.xml)
    Have to define every action as a bean.
    From the struts-config, you cannot tell what actions maps to what path, because all path point to DelegatingActionProxy.

    How can I convice my boss and co-workesrs to use DelegatingActionProxy?
    Ale Sarco

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    How can I convice my boss and co-workesrs to use DelegatingActionProxy?
    You do not need to
    You can continue to use Struts the old way (struts-config.xml, actions, action forms) but extends org.springframework.web.struts.XXXActionSupport instead of Struts own XXXAction. This approach, however, does not allow for using all the features of Spring MVC (Interceptors, HandlerMapping, View, ViewResolver...) but is, IMHO, the fastest way to integrate Struts with Spring.
    HTH
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •