Search Options
close
Search the following clips:
All Clips
Everyone's Clips
My Guides
Sign Up
Install
Learn More
Login
Spring MultiActionController Tutorial
vaannila
follow
0
6-30-2009 4:42 PM
887 views
tags:
spring
,
multiactioncontroller
,
tutorial
,
example
Add a Comment
Login
to Comment. Not a member yet?
Sign up
Today's Top Clips
Lucky Man !!
Ft Hood gunman told colleagues that infidels should have their throats cut
Beautiful Nature Photography from Alaska
Obama can't be bothered by Islamic terrorism
Abraham Maslow Quotes
10 Amazing Smoke Art Pieces
'Invisible' Lion Cage - Too Close For Comfort?
Brothel offers discount to cyclists
African Muslim with 'violent genes' gets sentence cut
Obama uses the word 'teabagger' to describe opposition
visit the
Top Clips page
View the Top Clips from
June 30, 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://www.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/096ebab5-2d6c-45f4-985c-8ca99b18ebe2/F17EB8D8-341F-4B0C-883B-FCAB104E18C4/" 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/spring/spring-tutorial/spring-tutorial.html" href="http://www.vaannila.com/spring/spring-tutorial/spring-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/spring/spring-tutorial/spring-tutorial.html"><A href="http://www.vaannila.com/spring/spring-tutorial/../spring-multi-action-controller.html"><STRONG>Spring MultiActionController Tutorial</STRONG> </A> <P> Learn how to group multiple actions into a single controller using Spring MultiActionController.</P></blockquote><div style="border-bottom: solid 1px #dcdcdc; white-space: nowrap; margin-bottom: 8px; background-color: #eeeeee ;background-image: url(http://www.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/spring/spring-multi-action-controller.html" href="http://www.vaannila.com/spring/spring-multi-action-controller.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/spring/spring-multi-action-controller.html"><H1>Spring MultiActionController</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/spring/spring-multi-action-controller.html"><P>Using Spring <EM>MultiActionController</EM> class you can group related actions into a single controller class. The handler method for each action should be in the following form.</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/spring/spring-multi-action-controller.html"><SPAN class="block"><CODE class="keyword">public</CODE> <CODE class="plain">(ModelAndView | Map | String | </CODE><CODE class="keyword">void</CODE><CODE class="plain">) actionName(HttpServletRequest, HttpServletResponse [,HttpSession] [,CommandObject]);</CODE></SPAN></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/spring/spring-multi-action-controller.html"><SPAN class="block"><CODE class="keyword">public</CODE> <CODE class="keyword">class</CODE> <CODE class="plain">UserController </CODE><CODE class="keyword">extends</CODE> <CODE class="plain">MultiActionController {</CODE></SPAN></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/spring/spring-multi-action-controller.html"><CODE class="plain">ModelAndView add(HttpServletRequest request,</CODE></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/spring/spring-multi-action-controller.html"><CODE class="plain">ModelAndView remove(HttpServletRequest request,</CODE></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/spring/spring-multi-action-controller.html"><SPAN class="block"><CODE class="plain"><</CODE><CODE class="keyword">bean</CODE> <CODE class="color1">name</CODE><CODE class="plain">=</CODE><CODE class="string">"/user/*.htm"</CODE> <CODE class="color1">class</CODE><CODE class="plain">=</CODE><CODE class="string">"com.vaannila.web.UserController"</CODE> <CODE class="plain">/></CODE></SPAN></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/F17EB8D8-341F-4B0C-883B-FCAB104E18C4/blog/" title="blog or email this clip"><img src="http://content9.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>
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
Blog
Copyright
Privacy
EULA
OK