<?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: Using annottions in springframework</title>
	<atom:link href="http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/</link>
	<description>A weblog about software engineering, Architecture, Technology an other things we like.</description>
	<lastBuildDate>Sat, 28 Jan 2012 20:11:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Paul Sundling</title>
		<link>http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/comment-page-1/#comment-11348</link>
		<dc:creator>Paul Sundling</dc:creator>
		<pubDate>Mon, 29 Dec 2008 14:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/#comment-11348</guid>
		<description>&quot;still I am not sure whether this is realy the way to go&quot;

Well it is the way to go and the old way is being deprecated in Spring 3.0.  

http://rossenstoyanchev.org/blog/category/spring-mvc/

A good articles on the topic is:
http://www.infoq.com/articles/spring-2.5-ii-spring-mvc

Even better is the slides from his presentation at Spring One 2008.  They really help clarify things.  I hope he puts them up on the web.  Here you&#039;re doing what he&#039;s talking about and just adapting the annotations to the old style controllers.  Works for backwards compatibility, but it&#039;s not the best approach going forward.

Think of the @Controller as a MultiActionController with methods for the different associated methods.  Combine it with the convention over configuration stuff like  ControllerClassNameHandlerMapping and you get more restful URLs .../employee/show, .../employee/edit, .../employee/find which correspond to methods on an EmployeeController.  I&#039;ve definitely come around to his way of thinking.  I&#039;ll admit I was on the fence myself before I understood the new approach.

Paul Sundling
http://www.gamerleague.com</description>
		<content:encoded><![CDATA[<p>&#8220;still I am not sure whether this is realy the way to go&#8221;</p>
<p>Well it is the way to go and the old way is being deprecated in Spring 3.0.  </p>
<p><a href="http://rossenstoyanchev.org/blog/category/spring-mvc/" rel="nofollow">http://rossenstoyanchev.org/blog/category/spring-mvc/</a></p>
<p>A good articles on the topic is:<br />
<a href="http://www.infoq.com/articles/spring-2.5-ii-spring-mvc" rel="nofollow">http://www.infoq.com/articles/spring-2.5-ii-spring-mvc</a></p>
<p>Even better is the slides from his presentation at Spring One 2008.  They really help clarify things.  I hope he puts them up on the web.  Here you&#8217;re doing what he&#8217;s talking about and just adapting the annotations to the old style controllers.  Works for backwards compatibility, but it&#8217;s not the best approach going forward.</p>
<p>Think of the @Controller as a MultiActionController with methods for the different associated methods.  Combine it with the convention over configuration stuff like  ControllerClassNameHandlerMapping and you get more restful URLs &#8230;/employee/show, &#8230;/employee/edit, &#8230;/employee/find which correspond to methods on an EmployeeController.  I&#8217;ve definitely come around to his way of thinking.  I&#8217;ll admit I was on the fence myself before I understood the new approach.</p>
<p>Paul Sundling<br />
<a href="http://www.gamerleague.com" rel="nofollow">http://www.gamerleague.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: André Faria Gomes</title>
		<link>http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/comment-page-1/#comment-9257</link>
		<dc:creator>André Faria Gomes</dc:creator>
		<pubDate>Thu, 30 Oct 2008 20:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/#comment-9257</guid>
		<description>You saved my life! I spent all the day long trying to put the SpringMvc to work. Now it is just running well with the SessionAttribute...
Thanks for sharing this knowledge.</description>
		<content:encoded><![CDATA[<p>You saved my life! I spent all the day long trying to put the SpringMvc to work. Now it is just running well with the SessionAttribute&#8230;<br />
Thanks for sharing this knowledge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jettro</title>
		<link>http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/comment-page-1/#comment-1559</link>
		<dc:creator>jettro</dc:creator>
		<pubDate>Sun, 08 Jun 2008 07:16:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/#comment-1559</guid>
		<description>Check page 352 of the reference manual (2.5.1) section &quot;13.12.3. Mapping requests with @RequestMapping&quot;. You can add parameters to your method of type ServletRequest (or PortletRequest). There is also a special class from the springframework called WebRequest. I must admit I have not used it before, but is seems pretty easy.

good luck</description>
		<content:encoded><![CDATA[<p>Check page 352 of the reference manual (2.5.1) section &#8220;13.12.3. Mapping requests with @RequestMapping&#8221;. You can add parameters to your method of type ServletRequest (or PortletRequest). There is also a special class from the springframework called WebRequest. I must admit I have not used it before, but is seems pretty easy.</p>
<p>good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sani</title>
		<link>http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/comment-page-1/#comment-1557</link>
		<dc:creator>sani</dc:creator>
		<pubDate>Sun, 08 Jun 2008 05:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/#comment-1557</guid>
		<description>Hi 
How can I retreive the web request in the controler? let say I have the controller defined like this:
@Controller
@RequestMapping(&quot;/*.hmtl&quot;)
public class MyController{}

So I want to retrieve home.hml from the controller in case that ressource was required.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi<br />
How can I retreive the web request in the controler? let say I have the controller defined like this:<br />
@Controller<br />
@RequestMapping(&#8220;/*.hmtl&#8221;)<br />
public class MyController{}</p>
<p>So I want to retrieve home.hml from the controller in case that ressource was required.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jettro</title>
		<link>http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/comment-page-1/#comment-609</link>
		<dc:creator>jettro</dc:creator>
		<pubDate>Sat, 12 Apr 2008 08:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/#comment-609</guid>
		<description>I think you can (If I understand you correct). You can find more information in the reference documentation of &lt;a href=&quot;https://springmodules.dev.java.net/&quot; rel=&quot;nofollow&quot;&gt;the springmodules project&lt;/a&gt;. The annotation looks like this:

@Validator(PersonValidator.class)

You can do more advanced validations with this class. The easy validations on field level are done using other annotations. Check out the code, mainly the domain objects. There you can find examples like this:

@NotNull
@Length(min = 3, max = 50 )
private String name;</description>
		<content:encoded><![CDATA[<p>I think you can (If I understand you correct). You can find more information in the reference documentation of <a href="https://springmodules.dev.java.net/" rel="nofollow">the springmodules project</a>. The annotation looks like this:</p>
<p>@Validator(PersonValidator.class)</p>
<p>You can do more advanced validations with this class. The easy validations on field level are done using other annotations. Check out the code, mainly the domain objects. There you can find examples like this:</p>
<p>@NotNull<br />
@Length(min = 3, max = 50 )<br />
private String name;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/comment-page-1/#comment-605</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 11 Apr 2008 22:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.gridshore.nl/2008/02/03/using-annottions-in-springframework/#comment-605</guid>
		<description>Great post on using Spring with annotations! Is it possible to declare a validation class with annotations?</description>
		<content:encoded><![CDATA[<p>Great post on using Spring with annotations! Is it possible to declare a validation class with annotations?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

