<?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: Freemarker: Java Template Engine</title>
	<atom:link href="http://www.beilers.com/2009/09/freemarker-java-template-engine/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beilers.com/2009/09/freemarker-java-template-engine/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=freemarker-java-template-engine</link>
	<description>Crazy Thoughts on Software Development and Life in General</description>
	<lastBuildDate>Sat, 07 Jan 2012 03:56:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Phil</title>
		<link>http://www.beilers.com/2009/09/freemarker-java-template-engine/#comment-36</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Mon, 05 Oct 2009 10:33:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.beilers.com/?p=499#comment-36</guid>
		<description>Certainly... Please check out this quick page on the Freemarker website for more information, http://freemarker.sourceforge.net/docs/dgui_quickstart_basics.html. But in your case, all you need to do is create a User bean, and your template would be &quot;Hello ${name}&quot;. The real power is being able to navigate thru the bean&#039;s attributes (an object graph) using FTL (Freemarker Template Language), where you can do conditionals, loops, etc. Good Luck!</description>
		<content:encoded><![CDATA[<p>Certainly&#8230; Please check out this quick page on the Freemarker website for more information, <a href="http://freemarker.sourceforge.net/docs/dgui_quickstart_basics.html" rel="nofollow">http://freemarker.sourceforge.net/docs/dgui_quickstart_basics.html</a>. But in your case, all you need to do is create a User bean, and your template would be &#8220;Hello ${name}&#8221;. The real power is being able to navigate thru the bean&#8217;s attributes (an object graph) using FTL (Freemarker Template Language), where you can do conditionals, loops, etc. Good Luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.beilers.com/2009/09/freemarker-java-template-engine/#comment-35</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Mon, 05 Oct 2009 04:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.beilers.com/?p=499#comment-35</guid>
		<description>I&#039;m new to FreeMarker. You simple is very helpful. Do you know how to apply a bean to a string template? Say if I have bean class,

	public class User {
		private String name;
		public User() {
		}
		public User(String name) {
			this.name = name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getName() {
			return name;
		}
	}

and I have a bean

    User bean = new User(&quot;Kevin&quot;);

How can I write a template string and access the bean property &quot;name&quot;?

Thanks a lot.</description>
		<content:encoded><![CDATA[<p>I&#8217;m new to FreeMarker. You simple is very helpful. Do you know how to apply a bean to a string template? Say if I have bean class,</p>
<p>	public class User {<br />
		private String name;<br />
		public User() {<br />
		}<br />
		public User(String name) {<br />
			this.name = name;<br />
		}<br />
		public void setName(String name) {<br />
			this.name = name;<br />
		}<br />
		public String getName() {<br />
			return name;<br />
		}<br />
	}</p>
<p>and I have a bean</p>
<p>    User bean = new User(&#8220;Kevin&#8221;);</p>
<p>How can I write a template string and access the bean property &#8220;name&#8221;?</p>
<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

