Announcement Announcement Module
Collapse
No announcement yet.
Best method of integration struts with spring? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Best method of integration struts with spring?

    Hi everyone:

    I want to know how to integrate struts and spring. What's the best method for integration them? I don't want to do it using struts plugin. Because spring 1.2 can do it in its own way. I want to know if the "ContextLoaderListener " could do it? :?

    HOw do you integration struts and spring ? Thks!

  • #2
    I use the ContextLoaderListener to load a context containing my business beans (+DAOs, resources...)

    I configure Struts to use the delegateRequestProcessor, and setup a Struts plugin to load a servlet-context that injects required business beans in my actions.

    Comment


    • #3


      Originally posted by ndeloof
      I use the ContextLoaderListener to load a context containing my business beans (+DAOs, resources...)

      I configure Struts to use the delegateRequestProcessor, and setup a Struts plugin to load a servlet-context that injects required business beans in my actions.
      Hi ndloof:

      Thank you for your reply. Could you tell me how to config it using ContextloaderListener? Is there any user guide to do this? thks!

      Comment


      • #4
        Hi,

        I'd recommend checking out Matt Raible's Equinox at https://equinox.dev.java.net/.

        Kind regards,

        Simon

        Comment


        • #5


          Originally posted by simtin
          Hi,

          I'd recommend checking out Matt Raible's Equinox at https://equinox.dev.java.net/.

          Kind regards,

          Simon
          Thank you . Now I use this : http://struts.sourceforge.net/struts-spring/

          Because it is easy to test.

          Comment


          • #6
            Originally posted by liren View Post
            Hi everyone:

            I want to know how to integrate struts and spring. What's the best method for integration them? I don't want to do it using struts plugin. Because spring 1.2 can do it in its own way. I want to know if the "ContextLoaderListener " could do it? :?

            HOw do you integration struts and spring ? Thks!
            one of the good integration example found here

            Struts2 With Spring

            Comment

            Working...
            X