<?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 for You don&#039;t know it all yet (Neither do I)</title>
	<atom:link href="http://eggsylife.co.uk/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://eggsylife.co.uk</link>
	<description>Eggsylife</description>
	<lastBuildDate>Mon, 08 Mar 2010 09:10:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Spring JS &#8211; Lack of an API or Documentation by admin</title>
		<link>http://eggsylife.co.uk/2010/01/22/spring-js-lack-of-an-api-or-documentation/comment-page-1/#comment-91</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 08 Mar 2010 09:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=232#comment-91</guid>
		<description>Hi Michael,

So I guess the question is what can we do about it? 

I have also posted on the &lt;a href=&quot;http://forum.springsource.org/showthread.php?t=83522&quot; rel=&quot;nofollow&quot;&gt;Spring forums&lt;/a&gt; if you would like to leave your comments?

Eggsy</description>
		<content:encoded><![CDATA[<p>Hi Michael,</p>
<p>So I guess the question is what can we do about it? </p>
<p>I have also posted on the <a href="http://forum.springsource.org/showthread.php?t=83522" rel="nofollow">Spring forums</a> if you would like to leave your comments?</p>
<p>Eggsy</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring JS &#8211; Lack of an API or Documentation by Michael Chang</title>
		<link>http://eggsylife.co.uk/2010/01/22/spring-js-lack-of-an-api-or-documentation/comment-page-1/#comment-90</link>
		<dc:creator>Michael Chang</dc:creator>
		<pubDate>Sun, 07 Mar 2010 04:35:27 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=232#comment-90</guid>
		<description>I agree, that&#039;s really meager documentation.  Most of Spring Framework is like that.  You don&#039;t know how effing long it took me just to figure out how to populate an HTML select element using Spring&#039;s form JSP tags (the &#039;path&#039; attribute of the select element and the &#039;items&#039; attribute of a nested &#039;options&#039; element cannot be the same, even though the official documentation says exactly the opposite).

What I think is desperately needed is something like what the MySQL and PHP documentation pages have, which is user comments beneath (but on the same page as) the official documentation.</description>
		<content:encoded><![CDATA[<p>I agree, that&#8217;s really meager documentation.  Most of Spring Framework is like that.  You don&#8217;t know how effing long it took me just to figure out how to populate an HTML select element using Spring&#8217;s form JSP tags (the &#8216;path&#8217; attribute of the select element and the &#8216;items&#8217; attribute of a nested &#8216;options&#8217; element cannot be the same, even though the official documentation says exactly the opposite).</p>
<p>What I think is desperately needed is something like what the MySQL and PHP documentation pages have, which is user comments beneath (but on the same page as) the official documentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring 3 RESTful Web Services by admin</title>
		<link>http://eggsylife.co.uk/2010/01/03/spring-3-restful-web-services/comment-page-1/#comment-89</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 22 Feb 2010 13:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=204#comment-89</guid>
		<description>@Stephen

In that case you could simply write to the response stream and set the response type like so:

&lt;pre lang=&quot;Java&quot;&gt;
@RequestMapping(method=RequestMethod.GET)
public void myControllerMethod( HttpServletResponse response) {
PrintWriter out = response.getWriter();
out.println(yourXMLHere);
response.setContentType(&quot;application/xml&quot;);
out.close();
}
&lt;/pre&gt;

The HttpServletResponse object is another parameter Spring request mapped methods can use within their signature.

Would that help?

Eggsy</description>
		<content:encoded><![CDATA[<p>@Stephen</p>
<p>In that case you could simply write to the response stream and set the response type like so:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">@RequestMapping<span style="color: #009900;">&#40;</span>method<span style="color: #339933;">=</span>RequestMethod.<span style="color: #006633;">GET</span><span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> myControllerMethod<span style="color: #009900;">&#40;</span> HttpServletResponse response<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #003399;">PrintWriter</span> out <span style="color: #339933;">=</span> response.<span style="color: #006633;">getWriter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
out.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>yourXMLHere<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
response.<span style="color: #006633;">setContentType</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;application/xml&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
out.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The HttpServletResponse object is another parameter Spring request mapped methods can use within their signature.</p>
<p>Would that help?</p>
<p>Eggsy</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring Annotations and Forms by admin</title>
		<link>http://eggsylife.co.uk/2009/11/06/spring-annotations-and-forms/comment-page-1/#comment-88</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sun, 21 Feb 2010 15:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=98#comment-88</guid>
		<description>Hi there,

The class that the method belongs to should have two annotations above it. Firstly the @Controller annotation which identifies it to Spring as controller then below that there should be the @RequestMapping annotation which should define the path. Any time a GET request is made to that path the method will be hit.

See the line:

&lt;pre lang=&quot;Java&quot;&gt;
@Controller
@RequestMapping(&quot;/processName.page&quot;)
public class NameFormController
&lt;/pre&gt;

Sp the path is the processName.page path.

Hope this helps</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>The class that the method belongs to should have two annotations above it. Firstly the @Controller annotation which identifies it to Spring as controller then below that there should be the @RequestMapping annotation which should define the path. Any time a GET request is made to that path the method will be hit.</p>
<p>See the line:</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">@Controller
@RequestMapping<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/processName.page&quot;</span><span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> NameFormController</pre></div></div>

<p>Sp the path is the processName.page path.</p>
<p>Hope this helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring Annotations and Forms by hendra</title>
		<link>http://eggsylife.co.uk/2009/11/06/spring-annotations-and-forms/comment-page-1/#comment-87</link>
		<dc:creator>hendra</dc:creator>
		<pubDate>Sun, 21 Feb 2010 04:22:02 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=98#comment-87</guid>
		<description>&lt;pre lang=&quot;Java&quot;&gt;
@SuppressWarnings(&quot;unchecked&quot;)
@RequestMapping(method = RequestMethod.GET)
protected String showNameForm(ModelMap model) throws Exception
{	
    return &quot;form.view&quot;;
}
&lt;/pre&gt;

when the code will be executed ?, i mean there is no request mapping &quot;path&quot; on it. and who will be invoce it.</description>
		<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">@SuppressWarnings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;unchecked&quot;</span><span style="color: #009900;">&#41;</span>
@RequestMapping<span style="color: #009900;">&#40;</span>method <span style="color: #339933;">=</span> RequestMethod.<span style="color: #006633;">GET</span><span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #003399;">String</span> showNameForm<span style="color: #009900;">&#40;</span>ModelMap model<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">Exception</span>
<span style="color: #009900;">&#123;</span>	
    <span style="color: #000000; font-weight: bold;">return</span> <span style="color: #0000ff;">&quot;form.view&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>when the code will be executed ?, i mean there is no request mapping &#8220;path&#8221; on it. and who will be invoce it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring 3 RESTful Web Services by Stephen Lang</title>
		<link>http://eggsylife.co.uk/2010/01/03/spring-3-restful-web-services/comment-page-1/#comment-86</link>
		<dc:creator>Stephen Lang</dc:creator>
		<pubDate>Fri, 19 Feb 2010 21:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=204#comment-86</guid>
		<description>Yes, the requirement is to Post/Put xml to the controller and return xml as the response body. The StringHttpMessageConverter would work fine to extract the posted xml. Then I just need to return a simple xml back in the response body that is where I am stuck. I do not need the Jaxb2Marshaller because I do not have an object unmarshall.</description>
		<content:encoded><![CDATA[<p>Yes, the requirement is to Post/Put xml to the controller and return xml as the response body. The StringHttpMessageConverter would work fine to extract the posted xml. Then I just need to return a simple xml back in the response body that is where I am stuck. I do not need the Jaxb2Marshaller because I do not have an object unmarshall.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring 3 RESTful Web Services by admin</title>
		<link>http://eggsylife.co.uk/2010/01/03/spring-3-restful-web-services/comment-page-1/#comment-85</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 19 Feb 2010 09:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=204#comment-85</guid>
		<description>Hi Stephen,

Is your requirement to Post/Put XML to a Spring controller?

If so Spring providers Message converters:

&lt;a href=&quot;http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/remoting.html#rest-message-conversion&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Message Conversion&lt;/a&gt;

Eggsy</description>
		<content:encoded><![CDATA[<p>Hi Stephen,</p>
<p>Is your requirement to Post/Put XML to a Spring controller?</p>
<p>If so Spring providers Message converters:</p>
<p><a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/remoting.html#rest-message-conversion" target="_blank" rel="nofollow">Message Conversion</a></p>
<p>Eggsy</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring 3 RESTful Web Services by Stephen Lang</title>
		<link>http://eggsylife.co.uk/2010/01/03/spring-3-restful-web-services/comment-page-1/#comment-84</link>
		<dc:creator>Stephen Lang</dc:creator>
		<pubDate>Fri, 19 Feb 2010 00:25:10 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=204#comment-84</guid>
		<description>This is so very cool. Works like a charm. Same url can serve both html/text and xml/text. 
Question if I have a service which generates xml already, what viewResolver I should use instead of the MarshallingView?</description>
		<content:encoded><![CDATA[<p>This is so very cool. Works like a charm. Same url can serve both html/text and xml/text.<br />
Question if I have a service which generates xml already, what viewResolver I should use instead of the MarshallingView?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring 3 RESTful Web Services by Java Spring 3 RESTful Web Service &#171; MINSIKZZANG IN PARIS</title>
		<link>http://eggsylife.co.uk/2010/01/03/spring-3-restful-web-services/comment-page-1/#comment-57</link>
		<dc:creator>Java Spring 3 RESTful Web Service &#171; MINSIKZZANG IN PARIS</dc:creator>
		<pubDate>Tue, 19 Jan 2010 07:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=204#comment-57</guid>
		<description>[...] http://eggsylife.co.uk/2010/01/03/spring-3-restful-web-services/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://eggsylife.co.uk/2010/01/03/spring-3-restful-web-services/" rel="nofollow">http://eggsylife.co.uk/2010/01/03/spring-3-restful-web-services/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Spring Annotations and Forms by admin</title>
		<link>http://eggsylife.co.uk/2009/11/06/spring-annotations-and-forms/comment-page-1/#comment-55</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 11 Jan 2010 13:10:06 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=98#comment-55</guid>
		<description>Hi Adrian,

Are you able to show me the controller? And then your templates.xml file?

If those two tie up check that you have the following in your servlet.xml file:

&lt;pre lang=&quot;XML&quot;&gt;
&lt;bean id=&quot;tilesConfigurer&quot; class=&quot;org.springframework.web.servlet.view.tiles2.TilesConfigurer&quot;&gt;
    &lt;property name=&quot;definitions&quot;&gt;
        &lt;list&gt;
             &lt;value&gt;/WEB-INF/tiles-defs/templates.xml&lt;/value&gt;
        &lt;/list&gt;
    &lt;/property&gt;
&lt;/bean&gt;
 
&lt;bean id=&quot;viewResolver&quot; class=&quot;org.springframework.web.servlet.view.UrlBasedViewResolver&quot;&gt;
    &lt;property name=&quot;viewClass&quot; value=&quot;org.springframework.web.servlet.view.tiles2.TilesView&quot;/&gt;
&lt;/bean&gt;
&lt;/pre&gt;

The templates.xml file location will of course be specific to your project.

If you would rather email me to sample code please feel free to drop me a message at:

eggsy _at_ eggsylife.co.uk</description>
		<content:encoded><![CDATA[<p>Hi Adrian,</p>
<p>Are you able to show me the controller? And then your templates.xml file?</p>
<p>If those two tie up check that you have the following in your servlet.xml file:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;bean</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;tilesConfigurer&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.springframework.web.servlet.view.tiles2.TilesConfigurer&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;definitions&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;list<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
             <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/WEB-INF/tiles-defs/templates.xml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/list<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/property<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/bean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;bean</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;viewResolver&quot;</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;org.springframework.web.servlet.view.UrlBasedViewResolver&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;viewClass&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;org.springframework.web.servlet.view.tiles2.TilesView&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/bean<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>The templates.xml file location will of course be specific to your project.</p>
<p>If you would rather email me to sample code please feel free to drop me a message at:</p>
<p>eggsy _at_ eggsylife.co.uk</p>
]]></content:encoded>
	</item>
</channel>
</rss>
