Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The id attribute in the Spring configuration corresponds to the class attribute in the action configuration.
  • The singleton attribute is set to false, meaning that Spring will create a new Action class upon each request, as SAF Struts 1 would do.
Warning
titleSpring Actions are Optional!

Remember: registering Actions with Spring is not required. The Spring alternative is there if you need it, but the framework will automatically create Actions objects from the action mappings. But, if you want to use Spring to inject your Actions, the option is there.