Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Struts 2 Spring Integration Tutorial
vaannila
follow
0
7-13-2009 2:07 AM
1594 views
tags:
struts2
,
spring
,
tutorial
,
example
,
integration
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
35 Powerful Photos That Each Tell A Story
A House is not a Home Without a Pet.
How enlightened are you?
cute animals sleeping
Creative Photography
Global Warming and Mt. Kilimanjaro; Receding for More Than a Century
trick of the eye" delightfully deceptive works of art-
The Truth About Work
ancient acropolis theatre to be restored
Our three deaths
visit the
Top Clips page
View the Top Clips from
July 13, 2009
Embed This Clip In Your Site...
<div style="margin: 12px 0px; font-family: arial; color: #333333; background: #ffffff; border: solid 4px #e5e5e5; width: 100%; clear: left;"><div class="CM_CTB_Content_Wrap" style="margin: 0px; padding: 0px;background-color: #ffffff;"><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content.clipmarks.com/blog_embed/55b25b03-ffbc-4f00-9d5f-82a6ced7d1ab/90D5CEB3-81C3-4E7B-935D-8167C551A807/" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.vaannila.com/struts-2/struts-2-tutorial/struts-2-tutorial.html" href="http://www.vaannila.com/struts-2/struts-2-tutorial/struts-2-tutorial.html" style="font-size: 11px;">www.vaannila.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts-2/struts-2-tutorial/struts-2-tutorial.html"><A href="http://www.vaannila.com/struts-2/struts-2-tutorial/../struts-2-example/struts-2-spring-plugin-integration-1.html"><STRONG>Struts 2 Spring Integration Tutorial</STRONG></A> <P> Learn how to integrate Spring and Struts 2 with the help of a simple hello world example.</P></blockquote><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content9.clipmarks.com/images/clip-icon.gif" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-1.html" href="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-1.html" style="font-size: 11px;">www.vaannila.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-1.html"><H1>Struts 2 Spring Integration</H1></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-1.html"><P>In this simple hello world example you will see how to integrate Spring and Struts 2 using the struts2-spring-plugin. By doing this you can utilize the Spring's powerful Dependency Injection feature. To learn more about Dependency Injection refer this <A rel="nofollow" href="http://www.vaannila.com/struts-2/struts-2-example/../../spring/spring-ioc-1.html">example.</A></P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-1.html"><EM>org.springframework.web.context.ContextLoaderListener</EM></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-1.html"><EM>applicationContext.xml</EM></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-1.html"><P> As you can see we have registered the <EM>HelloWorld</EM> class and injected the "<EM>Hello World!</EM>" message to the <EM>message</EM> attribute using the setter injection method. </P></blockquote><div style="height: 2px; font-size: 2px; background: #dcdcdc; border-bottom: solid 1px #f5f5f5; margin: 2px 4px;"></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-1.html"><P> The only change here is instead of referring the <EM>com.vaannila.HelloWorld</EM> class directly, we relate it using the bean name given in the spring bean configuration file. </P></blockquote><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://clipmarks.com/images/source-bg.gif); background-repeat: repeat-x; height: 24px; line-height: 24px; vertical-align: middle; padding-bottom: 4px; color: #666666; font-size: 10px;" ><a href="http://clipmarks.com/clip-to-blog/" title="see clips that are hot right now"><img src="http://content8.clipmarks.com/images/clip-icon.gif" alt="" width="19" height="19" border="0" style="vertical-align: middle; margin: 0px 4px; display: inline; border: none; float:none;" /></a>clipped from <a title="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-2.html" href="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-2.html" style="font-size: 11px;">www.vaannila.com</a></div><blockquote style="text-align: left; padding: 0px 8px; margin: 4px 0px 8px 0px; background: transparent; border: none;" cite="http://www.vaannila.com/struts-2/struts-2-example/struts-2-spring-plugin-integration-2.html"><table background="undefined" bgcolor=""><tr><TD><P> You can download and try the example here. </p> <TABLE width="230"><TBODY><TR><TD height="30"><DIV class="index"> Source :<A href="http://www.vaannila.com/struts-2/struts-2-example/../../examples/struts2/src/Struts2Example14.zip">Download</A></DIV></TD></TR><TR><TD height="30"><DIV class="index"> Source + Lib :<A href="http://www.vaannila.com/struts-2/struts-2-example/../../examples/struts2/example/Struts2Example14.war">Download</A></DIV> </TD></TR></TBODY></TABLE></TD></tr></table></blockquote></div><div style="margin: 0px 6px 6px 4px;"><table style="font-size: 11px;border-spacing: 0px;padding: 0px;" cellpadding="0" cellspacing="0" width="100%"><tr><td style="background:transparent;border-width:0px;padding:0px;"> </td><td align="right" style="background:transparent;border-width:0px;padding:0px;width:107px" width="107"><a href="http://clipmarks.com/share/90D5CEB3-81C3-4E7B-935D-8167C551A807/blog/" title="blog or email this clip"><img src="http://content6.clipmarks.com/images/c2b-foot.png" border="0" alt="blog it" width="107" height="17" style="border-width:0px;padding:0px;margin:0px;" /></a></td></tr></table></div></div>
New from the makers of Clipmarks:
Amplify.com - Don't just share the news...Amplify it!
Clipmarks
Home
New Clips
Top Clips
Dashboard
Popular Topics
News
Life
Science
Technology
Entertainment
Get Started
Sign Up
Install Clipping Tool
How Clipping Works
Clip-to-Blog™
ClipSearch
Tools and Resources
FAQ
ClipWeek
Top Clippers
Top Tags
Site Map
About Clipmarks
About Us
Contact
Copyright
Privacy
EULA
OK