views:

64

answers:

3

Hi Seniors, Could you please suggest me the best possible answer to this question for a telephonic interview. I tried to dig through the forums but couldn't find a detailed answer. Your help is highly appreciated.

+1  A: 

There is a plugin for Spring framework in Struts2. You just define appropriate types in your Struts action class constructor and plugin will retrieve appropriate bean from Spring's web app context.

Eugene Kuleshov
Thanks for the reply Eugene. Could you please tell me the name of this plugin?
techoverflow
http://struts.apache.org/2.0.9/docs/spring-plugin.html
Eugene Kuleshov
+1  A: 

It's the other way round. You configure Spring to work with Struts like this.

duffymo
Hi duffy, I cant see any link in your post :)
techoverflow
Hi techoverflow, I don't see you accepting or voting up any answers.
duffymo
Hi duffymo, I was waiting for some replies. I know how to accept an answer but I have no idea how to vote it up? Can I accept multiple answers?
techoverflow
Click on the "up" arrow to vote up. You'll see the number increment by one. And you can only accept one answer.
duffymo
+1  A: 

Spring provides some support out of the box:

http://static.springsource.org/spring/docs/2.5.x/api/org/springframework/web/struts/DelegatingActionProxy.html

Pablojim
Thanks Pablojim :)
techoverflow
I believe this is for Spring 1.x only
Eugene Kuleshov
That link is for 2.5.x!
Pablojim