<?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 StringTemplate as the view engine for your Spring MVC application</title>
	<atom:link href="http://ca.rroll.net/2009/06/18/using-stringtemplate-as-the-view-engine-for-your-spring-mvc-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://ca.rroll.net/2009/06/18/using-stringtemplate-as-the-view-engine-for-your-spring-mvc-application/</link>
	<description>Metabolising caffeine into code</description>
	<lastBuildDate>Tue, 20 Dec 2011 04:34:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jolsys</title>
		<link>http://ca.rroll.net/2009/06/18/using-stringtemplate-as-the-view-engine-for-your-spring-mvc-application/comment-page-1/#comment-5006</link>
		<dc:creator>jolsys</dc:creator>
		<pubDate>Tue, 01 Jun 2010 11:35:09 +0000</pubDate>
		<guid isPermaLink="false">http://ca.rroll.net/?p=199#comment-5006</guid>
		<description>Hey,

I have a problem because when i want to use this 4 technologies (SpringFramework, StringTemplate, JSTL, HIBERNATE) my JSTL do not work. But when i do not use ST - JSTL works. 
So I have a question is it possible integration this four technologies??</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>I have a problem because when i want to use this 4 technologies (SpringFramework, StringTemplate, JSTL, HIBERNATE) my JSTL do not work. But when i do not use ST &#8211; JSTL works.<br />
So I have a question is it possible integration this four technologies??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gael Marziou</title>
		<link>http://ca.rroll.net/2009/06/18/using-stringtemplate-as-the-view-engine-for-your-spring-mvc-application/comment-page-1/#comment-5005</link>
		<dc:creator>Gael Marziou</dc:creator>
		<pubDate>Mon, 31 May 2010 16:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://ca.rroll.net/?p=199#comment-5005</guid>
		<description>Spring provides some convenience macros for Velocity to simplify localization: #springMessage(&quot;title&quot;).
Did you manage to get something equivalent for ST?</description>
		<content:encoded><![CDATA[<p>Spring provides some convenience macros for Velocity to simplify localization: #springMessage(&#8220;title&#8221;).<br />
Did you manage to get something equivalent for ST?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ikenna Nwaiwu</title>
		<link>http://ca.rroll.net/2009/06/18/using-stringtemplate-as-the-view-engine-for-your-spring-mvc-application/comment-page-1/#comment-2026</link>
		<dc:creator>Ikenna Nwaiwu</dc:creator>
		<pubDate>Thu, 08 Oct 2009 13:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://ca.rroll.net/?p=199#comment-2026</guid>
		<description>If your template is in a sub directory in your templates directory, i.e WEB-INF/templates/articles/sidebar.st

then you may get a FileNotFoundException. 

Try specifying the root template directory like so: 

Resource rootResource = getApplicationContext().getResource(&quot;/WEB-INF/templates/&quot;);
String rootDirectory = rootResource.getFile().getPath();
StringTemplateGroup group = new StringTemplateGroup(&quot;templateGroup&quot;, rootDirectory);</description>
		<content:encoded><![CDATA[<p>If your template is in a sub directory in your templates directory, i.e WEB-INF/templates/articles/sidebar.st</p>
<p>then you may get a FileNotFoundException. </p>
<p>Try specifying the root template directory like so: </p>
<p>Resource rootResource = getApplicationContext().getResource(&#8220;/WEB-INF/templates/&#8221;);<br />
String rootDirectory = rootResource.getFile().getPath();<br />
StringTemplateGroup group = new StringTemplateGroup(&#8220;templateGroup&#8221;, rootDirectory);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://ca.rroll.net/2009/06/18/using-stringtemplate-as-the-view-engine-for-your-spring-mvc-application/comment-page-1/#comment-1915</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Sun, 28 Jun 2009 09:48:31 +0000</pubDate>
		<guid isPermaLink="false">http://ca.rroll.net/?p=199#comment-1915</guid>
		<description>My Java development mostly revolves around the Spring framework.  It implements the Inversion of Control (IoC) pattern which makes it very easy to write testable code.  I have been shying away from view technologies such as JSP as they allow you to put too much logic in the presentation layer.  I haven&#039;t done a lot of work with Facelets, but from what I know, it is also possible to put a lot of business logic in the presentation view.  This is generally a bad thing to do as you end up writing tightly coupled code that is very hard to test and maintain.

I like to follow the separation of concerns approach by separating presentation code from business logic.  This is essentially the Model-View-Controller (MVC) pattern.  However, within the presentation layer, I also like to create a separation of concerns by following three rules: use HTML to structure your content; use CSS to style your content; and use JavaScript to add behaviour to your web page.

Using StringTemplate for the presentation view forces you to focus only on structuring your content.  Styling and behaviour can be organised such that they exist in CSS and JavaScript files respectively.  And all dynamic content should be provided to the template by the controller.</description>
		<content:encoded><![CDATA[<p>My Java development mostly revolves around the Spring framework.  It implements the Inversion of Control (IoC) pattern which makes it very easy to write testable code.  I have been shying away from view technologies such as JSP as they allow you to put too much logic in the presentation layer.  I haven&#8217;t done a lot of work with Facelets, but from what I know, it is also possible to put a lot of business logic in the presentation view.  This is generally a bad thing to do as you end up writing tightly coupled code that is very hard to test and maintain.</p>
<p>I like to follow the separation of concerns approach by separating presentation code from business logic.  This is essentially the Model-View-Controller (MVC) pattern.  However, within the presentation layer, I also like to create a separation of concerns by following three rules: use HTML to structure your content; use CSS to style your content; and use JavaScript to add behaviour to your web page.</p>
<p>Using StringTemplate for the presentation view forces you to focus only on structuring your content.  Styling and behaviour can be organised such that they exist in CSS and JavaScript files respectively.  And all dynamic content should be provided to the template by the controller.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Cull</title>
		<link>http://ca.rroll.net/2009/06/18/using-stringtemplate-as-the-view-engine-for-your-spring-mvc-application/comment-page-1/#comment-1908</link>
		<dc:creator>Sean Cull</dc:creator>
		<pubDate>Sun, 21 Jun 2009 20:18:55 +0000</pubDate>
		<guid isPermaLink="false">http://ca.rroll.net/?p=199#comment-1908</guid>
		<description>That looks pretty neat. I&#039;ll have to look into that. So, up until now you have been using JSP for the presentation view in your Spring applications? How does that compare to using something like Facelets? (I&#039;m still kind of new to this stuff.)</description>
		<content:encoded><![CDATA[<p>That looks pretty neat. I&#8217;ll have to look into that. So, up until now you have been using JSP for the presentation view in your Spring applications? How does that compare to using something like Facelets? (I&#8217;m still kind of new to this stuff.)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

