Results 1 to 5 of 5

Thread: DelegatingActionProxy

  1. #1
    Join Date
    Oct 2007
    Posts
    9

    Arrow DelegatingActionProxy

    What is the advantage of using DelegatingActionProxy and injecting action using a xml file...

    I am having a project that usese following way to invoke action :

    ----Code snipet in struts-config.xml----

    <action
    path="/doLogin"
    type="org.springframework.web.struts.DelegatingAct ionProxy"
    name="logonForm"
    scope="request"
    validate="false">
    <forward name="success" path="home"/>
    </action>
    -------------------------------------

    ----Code snipet in struts-applicationContext.xml----

    <bean name="/doLogin"
    class="com.sqa.struts.action.LoginAction"singleton ="false">
    </bean>

    ------------------------------------

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    That way you Struts action are beans managed by Spring and you can inject stuff into them. If you don't you would have to pull everything from the context yourself instead of relying on Spring.

    Of course letting spring manaing your beans also allows the use of AOP etc.

    There is a chapter in the reference guide covering this.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    You might want to have a look at this article.
    http://www-128.ibm.com/developerwork...ary/j-sr2.html
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  4. #4
    Join Date
    Oct 2007
    Posts
    9

    Default

    Thanks Buddy.

  5. #5
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    Not a problem, there are quite a few options available so you should be able to get something working. If you are still having problems post back.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

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