Announcement Announcement Module
Collapse
No announcement yet.
Auto-injecting Struts Actions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Auto-injecting Struts Actions

    I'm coming to Spring from Pico/NanoContainer, using Spring with an existing Struts application. With Nano, you don't have to mention your Struts actions in your DI framework configuration; the Nano RequestProcessor constructs and automatically constructor injects all actions. In Spring terms, that would mean that all Struts Actions would be dependency injected via autowire="constructor", without having to mention the actions at all in the Spring web application context xml file.

    Is there any way to achieve this with Spring? I'm not looking forward manually adding entries for our actions, making sure that my bean id matches the action mapping url, etc.

    Thanks!

    Steve
Working...
X