aspose file tools*
The moose likes Struts and the fly likes How does struts knows we implemented bussiness layer with spings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How does struts knows we implemented bussiness layer with spings" Watch "How does struts knows we implemented bussiness layer with spings" New topic
Author

How does struts knows we implemented bussiness layer with spings

shyam sunder prasad
Ranch Hand

Joined: Mar 23, 2011
Posts: 62
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

Joined: Mar 08, 2011
Posts: 188

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

Joined: Mar 23, 2011
Posts: 62
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

Joined: Mar 08, 2011
Posts: 188

Hi shyam,

I have learned form http://static.springsource.org/spring/docs/2.5.x/reference/web-integration.html

here is an example of struts and spring integration:
http://code.google.com/p/struts2-examples/downloads/detail?name=Spring_Struts_2_Mvn_2_2_1.zip&can=2&q=

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How does struts knows we implemented bussiness layer with spings
 
Similar Threads
How is web services area?
Spring Tutorials
Struts vs Spring?
unable to validate using struts 1.2.2 version
please need information