<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Spring Binding and Validation: Introduction</title>
	<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/</link>
	<description>Exploring the Spring Framework and Application Development</description>
	<pubDate>Fri, 21 Nov 2008 13:40:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1</generator>

	<item>
		<title>By: Brave Dave&#8217;s Musings &#187; Blog Archive &#187; Spring MVC data binding and validation</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-95</link>
		<author>Brave Dave&#8217;s Musings &#187; Blog Archive &#187; Spring MVC data binding and validation</author>
		<pubDate>Mon, 03 Apr 2006 22:03:45 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-95</guid>
					<description>[...] This blog entry describes how simple it is to bind request data to POJOs in Spring MVC. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] This blog entry describes how simple it is to bind request data to POJOs in Spring MVC. [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: RichBaldwin</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-986</link>
		<author>RichBaldwin</author>
		<pubDate>Wed, 12 Jul 2006 19:26:56 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-986</guid>
					<description>This is great stuff.  I thought it desirable to return the user to the orginating form when fields failed to validate.  I'm fairly certain that setting up a multiactioncontroller would give me the functionality, but this might be a bit messy and there might be a better approach.</description>
		<content:encoded><![CDATA[<p>This is great stuff.  I thought it desirable to return the user to the orginating form when fields failed to validate.  I&#8217;m fairly certain that setting up a multiactioncontroller would give me the functionality, but this might be a bit messy and there might be a better approach.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Shankar Kolinjavadi</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-3105</link>
		<author>Shankar Kolinjavadi</author>
		<pubDate>Tue, 05 Dec 2006 23:29:18 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-3105</guid>
					<description>Nicely written blog.  keeps to the point and very clear. . better clarity than Spring's documentation. You should think about going into publishing a book  - half the  books out there on java technologies are not up to snuff.

Cheers

Shankar</description>
		<content:encoded><![CDATA[<p>Nicely written blog.  keeps to the point and very clear. . better clarity than Spring&#8217;s documentation. You should think about going into publishing a book  - half the  books out there on java technologies are not up to snuff.</p>
<p>Cheers</p>
<p>Shankar</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: tech</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-3116</link>
		<author>tech</author>
		<pubDate>Wed, 06 Dec 2006 11:49:05 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-3116</guid>
					<description>Ha, thanks Shankar.  I've already written one!</description>
		<content:encoded><![CDATA[<p>Ha, thanks Shankar.  I&#8217;ve already written one!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Brandon</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-3771</link>
		<author>Brandon</author>
		<pubDate>Thu, 28 Dec 2006 16:11:33 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-3771</guid>
					<description>Great blog, helps me gather arsenal to convinece my chief software engineer they are currently doing it all wrong (The current app returns all input values as a param mapping and they manual construct the POJO the page represents using request.getParameter(...) ).

I have two questions (if you could just email me directly):
(1) Where can I get a reciepe on setting up SPRING binding?  I have experience with Struts on my previous 2 applications (personal apps), and alittle bit of SPRING DAOs.

(2) I need to build an arsenal to convience my boss that it is okay to put some POJOs to session (making sure to remove them when the application is done with them of course).  Currently everything is being put to request, so when everytime a form is submitted the application has to go back to the DB and "re-inflate" the object the page represented.  This is really bad because if the page has labels the represent properties of the object they are lost when the form is submitted (not added to the param mapping).

Any advice would be great THANKS! 
</description>
		<content:encoded><![CDATA[<p>Great blog, helps me gather arsenal to convinece my chief software engineer they are currently doing it all wrong (The current app returns all input values as a param mapping and they manual construct the POJO the page represents using request.getParameter(&#8230;) ).</p>
<p>I have two questions (if you could just email me directly):<br />
(1) Where can I get a reciepe on setting up SPRING binding?  I have experience with Struts on my previous 2 applications (personal apps), and alittle bit of SPRING DAOs.</p>
<p>(2) I need to build an arsenal to convience my boss that it is okay to put some POJOs to session (making sure to remove them when the application is done with them of course).  Currently everything is being put to request, so when everytime a form is submitted the application has to go back to the DB and &#8220;re-inflate&#8221; the object the page represented.  This is really bad because if the page has labels the represent properties of the object they are lost when the form is submitted (not added to the param mapping).</p>
<p>Any advice would be great THANKS!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Arman Sharif</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-19575</link>
		<author>Arman Sharif</author>
		<pubDate>Tue, 26 Jun 2007 17:23:41 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-19575</guid>
					<description>I'm currently working on a form validation library, so it's interesting to see how different frameworks approach this. What I'd really like is something that allows you to do validation with hardly any code and no xml/mapping files. If you're interested, check out http://www.jreform.org</description>
		<content:encoded><![CDATA[<p>I&#8217;m currently working on a form validation library, so it&#8217;s interesting to see how different frameworks approach this. What I&#8217;d really like is something that allows you to do validation with hardly any code and no xml/mapping files. If you&#8217;re interested, check out <a href="http://www.jreform.org" rel="nofollow">http://www.jreform.org</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Swetha</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-23758</link>
		<author>Swetha</author>
		<pubDate>Thu, 02 Aug 2007 22:58:11 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-23758</guid>
					<description>My controller is not identifying setCommandClass function. Is it pre-defined or we have to write the functionality. Any help is really appreciated</description>
		<content:encoded><![CDATA[<p>My controller is not identifying setCommandClass function. Is it pre-defined or we have to write the functionality. Any help is really appreciated</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Antonio Sánchez</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-29910</link>
		<author>Antonio Sánchez</author>
		<pubDate>Mon, 15 Oct 2007 10:46:12 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-29910</guid>
					<description>Ok. That was quite interesting, but how we can bind information in case we were using a MultiActionController????
Thanks!</description>
		<content:encoded><![CDATA[<p>Ok. That was quite interesting, but how we can bind information in case we were using a MultiActionController????<br />
Thanks!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Andre</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-36332</link>
		<author>Andre</author>
		<pubDate>Tue, 25 Dec 2007 08:52:48 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-36332</guid>
					<description>swetha, your controller need to extend AbstractCommandController in order to get the setCommandClass function</description>
		<content:encoded><![CDATA[<p>swetha, your controller need to extend AbstractCommandController in order to get the setCommandClass function</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Waquin</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-39860</link>
		<author>Waquin</author>
		<pubDate>Fri, 15 Feb 2008 01:03:13 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-39860</guid>
					<description>You said that message interpretation would have to wait untill another day. When is that day? It would be really handy!</description>
		<content:encoded><![CDATA[<p>You said that message interpretation would have to wait untill another day. When is that day? It would be really handy!</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Ashokkumar</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-40964</link>
		<author>Ashokkumar</author>
		<pubDate>Thu, 28 Feb 2008 14:28:26 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-40964</guid>
					<description>I want to interpret the error message please give me the link for the interpretation ASAP.</description>
		<content:encoded><![CDATA[<p>I want to interpret the error message please give me the link for the interpretation ASAP.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: lalitha</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-41384</link>
		<author>lalitha</author>
		<pubDate>Tue, 04 Mar 2008 07:09:36 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-41384</guid>
					<description>Thanks it is working fine up to the given block

please tell how to interpret the error message in to jsp page using upstract command controller</description>
		<content:encoded><![CDATA[<p>Thanks it is working fine up to the given block</p>
<p>please tell how to interpret the error message in to jsp page using upstract command controller</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: skiN</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-42069</link>
		<author>skiN</author>
		<pubDate>Wed, 12 Mar 2008 17:21:04 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-42069</guid>
					<description>Thanks a lot........
i was struggling like anything... but your example helped a lot...
Thanks once again.</description>
		<content:encoded><![CDATA[<p>Thanks a lot&#8230;&#8230;..<br />
i was struggling like anything&#8230; but your example helped a lot&#8230;<br />
Thanks once again.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Dhrubo</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-42456</link>
		<author>Dhrubo</author>
		<pubDate>Mon, 17 Mar 2008 15:21:29 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-42456</guid>
					<description>Hi Jon,
          Dhrubo here. I think you put it right command bean is a complete misnomer. If these page controllers were called command beans there was no problem. But these command beans should be called form beans. Struts got it right.
What do you think.
Cheers... dhrubo</description>
		<content:encoded><![CDATA[<p>Hi Jon,<br />
          Dhrubo here. I think you put it right command bean is a complete misnomer. If these page controllers were called command beans there was no problem. But these command beans should be called form beans. Struts got it right.<br />
What do you think.<br />
Cheers&#8230; dhrubo</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Pete</title>
		<link>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-44036</link>
		<author>Pete</author>
		<pubDate>Wed, 09 Apr 2008 08:19:59 +0000</pubDate>
		<guid>http://www.memestorm.com/blog/spring-binding-and-validation-introduction/#comment-44036</guid>
					<description>Not sure why you need any of this, if you use a MultiActionController you may specify a command object as a 3rd parameter

e.g.

public ModelAndView handleViewList(HttpServletRequest request,
                                             HttpServletResponse response, SearchCommand searchCommand) throws Exception {

where SearchCommand is the command object - any request parameters that match its properties will be bound automatically. Bean must have a default constructor. 

In Spring 2.5 it a little more flexible e.g. 

    @RequestMapping("/myurl.html")
    public ModelAndView addMultiple(@ModelAttribute("command") SearchCommand command, 
    			HttpServletRequest request, HttpServletResponse response)</description>
		<content:encoded><![CDATA[<p>Not sure why you need any of this, if you use a MultiActionController you may specify a command object as a 3rd parameter</p>
<p>e.g.</p>
<p>public ModelAndView handleViewList(HttpServletRequest request,<br />
                                             HttpServletResponse response, SearchCommand searchCommand) throws Exception {</p>
<p>where SearchCommand is the command object - any request parameters that match its properties will be bound automatically. Bean must have a default constructor. </p>
<p>In Spring 2.5 it a little more flexible e.g. </p>
<p>    @RequestMapping(&#8221;/myurl.html&#8221;)<br />
    public ModelAndView addMultiple(@ModelAttribute(&#8221;command&#8221;) SearchCommand command,<br />
    			HttpServletRequest request, HttpServletResponse response)</p>
]]></content:encoded>
				</item>
</channel>
</rss>
