<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.11" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Using a Hybrid Annotations &#038; XML Approach for Request Mapping in Spring MVC</title>
	<link>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/</link>
	<description>The voice of SpringSource</description>
	<pubDate>Thu, 21 Aug 2008 01:29:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.11</generator>

	<item>
		<title>by: Juergen Hoeller</title>
		<link>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101603</link>
		<pubDate>Thu, 27 Mar 2008 10:53:22 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101603</guid>
					<description>FYI, the ControllerClassNameHandlerMapping revision for @Controller beans is now available in the latest 2.5.3 snapshots! It autodetects @Controller beans as well now (when running on Java 1.5 or above), mapping the according to the class name strategy.

Juergen</description>
		<content:encoded><![CDATA[<p>FYI, the ControllerClassNameHandlerMapping revision for @Controller beans is now available in the latest 2.5.3 snapshots! It autodetects @Controller beans as well now (when running on Java 1.5 or above), mapping the according to the class name strategy.</p>
<p>Juergen
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: tzolov</title>
		<link>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101441</link>
		<pubDate>Mon, 24 Mar 2008 23:44:22 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101441</guid>
					<description>Hi Rosene, 
While mixing the traditional Controller sub-class style with the annotation based style I’ve noticed that my traditional controllers were not mapped until I've defied the SimpleControllerHandlerAdapter explicitly in the application context. 
So if the AnnotationMethodHandlerAdapter is defined explicitly then all default adapters are implicitly turned off  and the traditional (old style) controllers do not work. To solve it I had to define the default handler SimpleControllerHandlerAdapter explicitly.

Cheers, Chris</description>
		<content:encoded><![CDATA[<p>Hi Rosene,<br />
While mixing the traditional Controller sub-class style with the annotation based style I’ve noticed that my traditional controllers were not mapped until I&#039;ve defied the SimpleControllerHandlerAdapter explicitly in the application context.<br />
So if the AnnotationMethodHandlerAdapter is defined explicitly then all default adapters are implicitly turned off  and the traditional (old style) controllers do not work. To solve it I had to define the default handler SimpleControllerHandlerAdapter explicitly.</p>
<p>Cheers, Chris
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Rossen Stoyanchev</title>
		<link>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101415</link>
		<pubDate>Mon, 24 Mar 2008 17:46:24 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101415</guid>
					<description>Adam, a few different annotations can help gain much of the same functionality. For example during a form submit you can get access to the command object populated with a DataBinder by placing the @ModelAttribute("command") annotation on an input parameter. The @SessionAttribute("command") on a class lets you store a model attribute in the session between requests. The @InitBinder annotation placed on a method lets you customize the DataBinder. Take a look at the Petclinic sample in Spring 2.5, which has been updated to use Spring MVC annotations. All of these are shown there.</description>
		<content:encoded><![CDATA[<p>Adam, a few different annotations can help gain much of the same functionality. For example during a form submit you can get access to the command object populated with a DataBinder by placing the @ModelAttribute(&#034;command&#034;) annotation on an input parameter. The @SessionAttribute(&#034;command&#034;) on a class lets you store a model attribute in the session between requests. The @InitBinder annotation placed on a method lets you customize the DataBinder. Take a look at the Petclinic sample in Spring 2.5, which has been updated to use Spring MVC annotations. All of these are shown there.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Adam Sherman</title>
		<link>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101408</link>
		<pubDate>Mon, 24 Mar 2008 15:38:33 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101408</guid>
					<description>I really like this approach. However, how do we replicate the existing functionality in the abstract controller classes? (AbstractCommandController, etc.)

A.</description>
		<content:encoded><![CDATA[<p>I really like this approach. However, how do we replicate the existing functionality in the abstract controller classes? (AbstractCommandController, etc.)</p>
<p>A.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Using a Hybrid Annotations &#38; XML Approach for Request Mapping in &#8230;</title>
		<link>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101355</link>
		<pubDate>Mon, 24 Mar 2008 00:51:01 +0000</pubDate>
		<guid>http://blog.springsource.com/main/2008/03/23/using-a-hybrid-annotations-xml-approach-for-request-mapping-in-spring-mvc/#comment-101355</guid>
					<description>[...] Grant Martin wrote an interesting post today onHere&#8217;s a quick excerptHence &#8220;/account*&#8221; is delegated to a controller named AccountController. No explicit mappings required. Spring 2.5 adds a fourth option in the form of the @RequestMapping annotation, which can be placed on a class or a method. &#8230; [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Grant Martin wrote an interesting post today onHere&#039;s a quick excerptHence &#034;/account*&#034; is delegated to a controller named AccountController. No explicit mappings required. Spring 2.5 adds a fourth option in the form of the @RequestMapping annotation, which can be placed on a class or a method. &#8230; [&#8230;]
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
