Stan Kurilin
Stan Kurilin

Reputation: 15812

Can I use Struts2 without Spring IoC?

Can I use Struts2 without Spring IoC?

Upvotes: 1

Views: 943

Answers (5)

Steven Benitez
Steven Benitez

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

Johannes
Johannes

Reputation: 2070

Spring is only one option. You can work with others like Google Guice or without IOC.

Upvotes: 4

Jigar Joshi
Jigar Joshi

Reputation: 240996

Yes

Spring IOC is just a pluggable object dependency container, which manages objects for you. It is optional.

Upvotes: 1

Tamiliniyan Devarajan
Tamiliniyan Devarajan

Reputation: 86

Basically both are independent. You can definitely use Struts 2 without Spring IOC.

Upvotes: -1

jhurtado
jhurtado

Reputation: 8747

Yes you can, even when you can integrate both on your project, it is not required.

Upvotes: 2

Related Questions