Reputation: 15812
Can I use Struts2 without Spring IoC?
Upvotes: 1
Views: 943
Reputation: 11055
Struts2 was designed with dependency injection in mind and adheres to the principles pretty well (the underlying XWork framework uses an early version of Guice). You can step up to Guice or Spring later using the appropriate plug-in.
Upvotes: 2
Reputation: 2070
Spring is only one option. You can work with others like Google Guice or without IOC.
Upvotes: 4
Reputation: 240996
Spring IOC is just a pluggable object dependency container, which manages objects for you. It is optional.
Upvotes: 1
Reputation: 86
Basically both are independent. You can definitely use Struts 2 without Spring IOC.
Upvotes: -1
Reputation: 8747
Yes you can, even when you can integrate both on your project, it is not required.
Upvotes: 2