Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How does struts knows we implemented bussiness layer with spings

 
shyam sunder prasad
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my project i used struts with springs .i took separate files for struts and springs beans.
but my interviewer asking me how struts know myself using springs as a spring layer.

please tell me where to configure and how struts know it.
 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI shyam,

to integrate struts2 and spring, you need to add struts2-spring-plugin-xxx.jar in your classpath.
also in web.xml


please take a look at
http://static.springsource.org/spring/docs/2.0.x/api/org/springframework/web/context/ContextLoaderServlet.html
 
shyam sunder prasad
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can't we develop with out using that plug in.

i developed without using the plug in what you mentioned there.
 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic