<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: REST in Spring 3: @MVC</title>
	<atom:link href="http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/</link>
	<description>The voice of SpringSource</description>
	<lastBuildDate>Sat, 13 Mar 2010 01:18:34 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: JUnit Tests for Spring 3 Rest Services &#171; Ralf Schäftlein&#8217;s Blog</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-2/#comment-171597</link>
		<dc:creator>JUnit Tests for Spring 3 Rest Services &#171; Ralf Schäftlein&#8217;s Blog</dc:creator>
		<pubDate>Thu, 11 Mar 2010 07:51:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-171597</guid>
		<description>[...] the REST functionalities inside the Web MVC part of the Framework. Rest Service are defined as Controller and can be tested with the new Resttemplate. In this little sample project is Spring 3 combined [...]</description>
		<content:encoded><![CDATA[<p>[...] the REST functionalities inside the Web MVC part of the Framework. Rest Service are defined as Controller and can be tested with the new Resttemplate. In this little sample project is Spring 3 combined [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: juan</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-2/#comment-171561</link>
		<dc:creator>juan</dc:creator>
		<pubDate>Tue, 09 Mar 2010 14:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-171561</guid>
		<description>Hello Arjen,

I built a class called SiteMap (implementing BeanFactoryAware) that builds a list of my app&#039;s URIs. When clients hit my root context, I&#039;ll serve out an XHTML5 representation of this sitemap for further discovery (I could possibly even serve a WADL).

In fear of re-inventing the wheel, do you have similar functionality already?

Also, it will be great if RequestMapping could be made more granular, e.g. 

@RequestMappings){
  @RequestMapping(&quot;/sales_channel/{region}&quot;,
    @Arguments({@Argument(0, uri=&quot;/regions&quot;)}))
})

Or...

@RequestMappings){
  @RequestMapping(&quot;/foo/{bar}/{baz}&quot;,
    @Arguments({
      @Argument(0, uri=&quot;/bars&quot;),
      @Argument(1, doc=&quot;This is a free-text field, first 30 characters accepted.&quot;)}))
})

The first one tells my client that the variable &quot;region&quot; has options in the result provided by the call to &quot;/regions&quot;.
In the second one instead we provide documentation stating that the second argument is a free-text field.

I&#039;d like to be able to have a self-documenting system like this.

Thanks,
Juan</description>
		<content:encoded><![CDATA[<p>Hello Arjen,</p>
<p>I built a class called SiteMap (implementing BeanFactoryAware) that builds a list of my app&#039;s URIs. When clients hit my root context, I&#039;ll serve out an XHTML5 representation of this sitemap for further discovery (I could possibly even serve a WADL).</p>
<p>In fear of re-inventing the wheel, do you have similar functionality already?</p>
<p>Also, it will be great if RequestMapping could be made more granular, e.g. </p>
<p>@RequestMappings){<br />
  @RequestMapping(&#034;/sales_channel/{region}&#034;,<br />
    @Arguments({@Argument(0, uri=&#034;/regions&#034;)}))<br />
})</p>
<p>Or&#8230;</p>
<p>@RequestMappings){<br />
  @RequestMapping(&#034;/foo/{bar}/{baz}&#034;,<br />
    @Arguments({<br />
      @Argument(0, uri=&#034;/bars&#034;),<br />
      @Argument(1, doc=&#034;This is a free-text field, first 30 characters accepted.&#034;)}))<br />
})</p>
<p>The first one tells my client that the variable &#034;region&#034; has options in the result provided by the call to &#034;/regions&#034;.<br />
In the second one instead we provide documentation stating that the second argument is a free-text field.</p>
<p>I&#039;d like to be able to have a self-documenting system like this.</p>
<p>Thanks,<br />
Juan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: André Faria Gomes</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-2/#comment-171211</link>
		<dc:creator>André Faria Gomes</dc:creator>
		<pubDate>Tue, 02 Feb 2010 17:03:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-171211</guid>
		<description>It sems that there is a solution for the problem I&#039;ve pointed right here http://stackoverflow.com/questions/2047774/spring-mvc-rest-static-files-unaccessible-because-of-url-pattern

Thanks, Anyway....</description>
		<content:encoded><![CDATA[<p>It sems that there is a solution for the problem I&#039;ve pointed right here <a href="http://stackoverflow.com/questions/2047774/spring-mvc-rest-static-files-unaccessible-because-of-url-pattern" rel="nofollow">http://stackoverflow.com/questions/2047774/spring-mvc-rest-static-files-unaccessible-because-of-url-pattern</a></p>
<p>Thanks, Anyway&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: André Faria Gomes</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-2/#comment-171210</link>
		<dc:creator>André Faria Gomes</dc:creator>
		<pubDate>Tue, 02 Feb 2010 16:49:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-171210</guid>
		<description>It&#039;s it possible to use this without an extension like .do or .action in the URIs?

Cause I tried map the dispatcher servlet with /* but then I got some erros when trying to load other resources like scripts (js), images and static pages.

I just would like to use http://domain/users/name insted of http://domain/users/name.do</description>
		<content:encoded><![CDATA[<p>It&#039;s it possible to use this without an extension like .do or .action in the URIs?</p>
<p>Cause I tried map the dispatcher servlet with /* but then I got some erros when trying to load other resources like scripts (js), images and static pages.</p>
<p>I just would like to use <a href="http://domain/users/name" rel="nofollow">http://domain/users/name</a> insted of <a href="http://domain/users/name.do" rel="nofollow">http://domain/users/name.do</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-2/#comment-171038</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Mon, 18 Jan 2010 22:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-171038</guid>
		<description>@Scott
I tried all kinds of marshallers. I don&#039;t think it&#039;s a marshaller issue at all! I believe it is the implementation of the locateToBeMarshalled method that causes problem and I added an issue as well, please take a look:
http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/

I think this is the problem - I even tried different marshallers.</description>
		<content:encoded><![CDATA[<p>@Scott<br />
I tried all kinds of marshallers. I don&#039;t think it&#039;s a marshaller issue at all! I believe it is the implementation of the locateToBeMarshalled method that causes problem and I added an issue as well, please take a look:<br />
<a href="http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/" rel="nofollow">http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/</a></p>
<p>I think this is the problem &#8211; I even tried different marshallers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott Frederick</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-2/#comment-171021</link>
		<dc:creator>Scott Frederick</dc:creator>
		<pubDate>Fri, 15 Jan 2010 19:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-171021</guid>
		<description>@Michal, are you using Jaxb2Marshaller? If so, I have this same problem and I definitely don&#039;t think it is desired behavior. I submitted an issue to Spring concerning this behavior: http://jira.springframework.org/browse/SPR-6577. You can vote for the issue if you agree it is a problem. 

There is a workaround. When you define the MarshallingView bean in your Spring XML config file, set the &quot;modelKey&quot; property on the view bean to tell it which object from the ModelAndView to marshall. It is not a good solution, but it works.</description>
		<content:encoded><![CDATA[<p>@Michal, are you using Jaxb2Marshaller? If so, I have this same problem and I definitely don&#039;t think it is desired behavior. I submitted an issue to Spring concerning this behavior: <a href="http://jira.springframework.org/browse/SPR-6577" rel="nofollow">http://jira.springframework.org/browse/SPR-6577</a>. You can vote for the issue if you agree it is a problem. </p>
<p>There is a workaround. When you define the MarshallingView bean in your Spring XML config file, set the &#034;modelKey&#034; property on the view bean to tell it which object from the ModelAndView to marshall. It is not a good solution, but it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-2/#comment-171018</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Fri, 15 Jan 2010 12:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-171018</guid>
		<description>My MarshallingView (Spring 3.0.0.RELEASE) seems to be picking only ONE object from a ModelAndView object and it picks the first one by key (alphabetically). Is that desired?</description>
		<content:encoded><![CDATA[<p>My MarshallingView (Spring 3.0.0.RELEASE) seems to be picking only ONE object from a ModelAndView object and it picks the first one by key (alphabetically). Is that desired?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Migrating to Apache Wicket &#171; The Official Android Runner Blog</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-1/#comment-170076</link>
		<dc:creator>Migrating to Apache Wicket &#171; The Official Android Runner Blog</dc:creator>
		<pubDate>Wed, 09 Dec 2009 08:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-170076</guid>
		<description>[...] interface that serves XML responses, will probably migrate to Spring 3 to take advantage of its new REST annotations feature, while the rest of the application remain implemented in Wicket. So, I hope next time I post I can [...]</description>
		<content:encoded><![CDATA[<p>[...] interface that serves XML responses, will probably migrate to Spring 3 to take advantage of its new REST annotations feature, while the rest of the application remain implemented in Wicket. So, I hope next time I post I can [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Renan Huanca &#187; Hello World/Hola Mundo con RESTFul y Spring 3</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-1/#comment-169986</link>
		<dc:creator>Renan Huanca &#187; Hello World/Hola Mundo con RESTFul y Spring 3</dc:creator>
		<pubDate>Sun, 06 Dec 2009 22:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-169986</guid>
		<description>[...] REST in Spring 3: @MVC [...]</description>
		<content:encoded><![CDATA[<p>[...] REST in Spring 3: @MVC [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabio</title>
		<link>http://blog.springsource.com/2009/03/08/rest-in-spring-3-mvc/comment-page-1/#comment-169890</link>
		<dc:creator>Fabio</dc:creator>
		<pubDate>Fri, 04 Dec 2009 14:07:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=991#comment-169890</guid>
		<description>Consider a method like this:
   
   @RequestMapping(value=&quot;/businessFunctions&quot;, method=RequestMethod.POST)
   public void post(@RequestBody String body) {
      BusinessFunction bfToInsert = deserializeJson(body);
      aclService.insertBusinessFunction(bfToInsert);
   }

What do I have to return? My GET method works perfectly returning a string with @RequestBody annotation. I suppose POST doesn&#039;t have to return anything else than a Response code 201. The question is.... HOW?</description>
		<content:encoded><![CDATA[<p>Consider a method like this:</p>
<p>   @RequestMapping(value=&#034;/businessFunctions&#034;, method=RequestMethod.POST)<br />
   public void post(@RequestBody String body) {<br />
      BusinessFunction bfToInsert = deserializeJson(body);<br />
      aclService.insertBusinessFunction(bfToInsert);<br />
   }</p>
<p>What do I have to return? My GET method works perfectly returning a string with @RequestBody annotation. I suppose POST doesn&#039;t have to return anything else than a Response code 201. The question is&#8230;. HOW?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
