<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>bitwalker.nl &#187; groovy</title>
	<atom:link href="http://www.bitwalker.nl/blog/category/groovy/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bitwalker.nl</link>
	<description>agile software development</description>
	<lastBuildDate>Sun, 15 Aug 2010 20:49:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>AppleScript with Groovy</title>
		<link>http://www.bitwalker.nl/blog/applescript-with-groovy</link>
		<comments>http://www.bitwalker.nl/blog/applescript-with-groovy#comments</comments>
		<pubDate>Thu, 16 Oct 2008 16:08:56 +0000</pubDate>
		<dc:creator>Harald Walker</dc:creator>
				<category><![CDATA[groovy]]></category>

		<guid isPermaLink="false">http://www.bitwalker.nl/?p=55</guid>
		<description><![CDATA[Today I was looking into Java and AppleScript to see what is possible. But since Java has this nice little brother called Groovy, I wanted to try to execute AppleScript from within a Groovy script. With Java SE 6 AppleScript has been provided as a ScriptEngine to the javax.script API, which makes using it much [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was looking into Java and AppleScript to see what is possible. But since Java has this nice little brother called Groovy, I wanted to try to execute AppleScript from within a Groovy script. With Java SE 6 AppleScript has been provided as a ScriptEngine to the javax.script API, which makes using it much easier. My little example script opens an URL in the default browser, takes a screenshot and notifies the user.</p>

<div class="wp_syntax"><div class="code"><pre class="groovy" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">import</span> <span style="color: #a1a100;">javax.script.*</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">def</span> takeScreenshot <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;&quot;&quot;<span style="color: #000099; font-weight: bold;">\</span>
open location <span style="color: #000099; font-weight: bold;">\&quot;</span>http://www.bitwalker.nl<span style="color: #000099; font-weight: bold;">\&quot;</span>
delay 5
do shell script <span style="color: #000099; font-weight: bold;">\&quot;</span>screencapture screenshot.pdf<span style="color: #000099; font-weight: bold;">\&quot;</span>
&quot;&quot;&quot;</span>
&nbsp;
ScriptEngineManager mgr <span style="color: #66cc66;">=</span> <span style="color: #000000; font-weight: bold;">new</span> ScriptEngineManager<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
ScriptEngine engine <span style="color: #66cc66;">=</span> mgr.<span style="color: #006600;">getEngineByName</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;AppleScript&quot;</span><span style="color: #66cc66;">&#41;</span>
engine.<span style="color: #006600;">eval</span><span style="color: #66cc66;">&#40;</span>takeScreenshot<span style="color: #66cc66;">&#41;</span>
engine.<span style="color: #006600;">eval</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;say <span style="color: #000099; font-weight: bold;">\&quot;</span>Your screenshot is ready<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>You can run this directly in the GroovyConsole or as regular Groovy script. Don&#8217;t forget to set JAVA_HOME to 1.6.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bloglines.com/sub/http://www.bitwalker.nl/blog/applescript-with-groovy" rel="nofollow" title="Add to&nbsp;Bloglines"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/bloglines.png" title="Add to&nbsp;Bloglines" alt="Add to&nbsp;Bloglines" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;Blogmarks"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/bmarks.png" title="Add to&nbsp;Blogmarks" alt="Add to&nbsp;Blogmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dzone.com/links/add.html?description=AppleScript+with+Groovy&amp;url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;DZone"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/dzone.png" title="Add to&nbsp;DZone" alt="Add to&nbsp;DZone" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.bitwalker.nl/blog/applescript-with-groovy" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://fleck.com/litebookmarklet.php?url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;Fleck"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/fleck.png" title="Add to&nbsp;Fleck" alt="Add to&nbsp;Fleck" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://netvouz.com/action/submitBookmark?url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy&amp;popup=no" rel="nofollow" title="Add to&nbsp;Netvouz"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/netvouz.png" title="Add to&nbsp;Netvouz" alt="Add to&nbsp;Netvouz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.spurl.net/spurl.php?url=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;title=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;Spurl"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/spurl.png" title="Add to&nbsp;Spurl" alt="Add to&nbsp;Spurl" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.bitwalker.nl/blog/applescript-with-groovy" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.bitwalker.nl/blog/applescript-with-groovy&amp;t=AppleScript+with+Groovy" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.bitwalker.nl/blog/applescript-with-groovy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using GroovyServer Pages in Dreamweaver</title>
		<link>http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver</link>
		<comments>http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver#comments</comments>
		<pubDate>Thu, 20 Sep 2007 13:55:06 +0000</pubDate>
		<dc:creator>Harald Walker</dc:creator>
				<category><![CDATA[groovy]]></category>
		<category><![CDATA[gsp]]></category>
		<category><![CDATA[dreamweaver]]></category>

		<guid isPermaLink="false">http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver</guid>
		<description><![CDATA[We started using Grails in our current project for one of the internal web-applications. Grails uses GroovyServer Pages (gsp) for web pages and layout templates (you can also use JSP instead). As I don&#8217;t like to use Eclipse for web-design tasks, I figured out how to add gsp support to Dreamweaver (CS3).
Step 1: Add .gsp [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://www.bitwalker.nl/wp-content/uploads/2007/09/gsp-tag-support-in-dreamweaver.png" alt="gsp tag support in Dreamweaver" />We started using <a href="http://grails.codehaus.org/">Grails</a> in our current project for one of the internal web-applications. Grails uses GroovyServer Pages (gsp) for web pages and layout templates (you can also use JSP instead). As I don&#8217;t like to use Eclipse for web-design tasks, I figured out how to add gsp support to Dreamweaver (CS3).</p>
<p><strong>Step 1: Add .gsp file extension</strong><br />
Edit the Extensions.txt file, which can be found here:<br />
Windows: \Documents and Settings\<em>username</em>\Application Data\Adobe\Dreamweaver 9\Configuration<br />
Mac OS X: /Users/<em>username</em>/Library/Application Support/Adobe/Dreamweaver 9/Configuration<br />
Add a new line with <code>GSP:Groovy Server Pages</code> and add the gsp extension to the first line. Restart Dreamweaver, which will now recognize the .gsp files and open them in the editor.<br />
Next, add the following code to configuration/DocumentTypes/MMDocumentTypes.xml<br />
<code><br />
&lt;documenttype id="GSP" internaltype="Dynamic" winfileextension="gsp" macfileextension="gsp" file="Default.gsp" writebyteordermark="false"&gt;<br />
&lt;TITLE&gt;<br />
&lt;MMString:loadString id="mmdocumenttypes_70" /&gt;<br />
&lt;/TITLE&gt;<br />
&lt;description&gt;<br />
&lt;MMString:loadString id="mmdocumenttypes_71" /&gt;<br />
&lt;/description&gt;<br />
&lt;dtdcontext&gt;html&lt;/dtdcontext&gt;<br />
&lt;/documenttype&gt;<br />
</code><br />
Adjust the id values if necessary. In the folder NewDocuments create a Default.gsp file. Gsp files are not being shown as option in the new files dialog yet, so the Default file is not being used. If someone knows how to do this, please let me know.<br />
It takes adobe a couple of pages to explain it all in detail: <a href="http://www.adobe.com/go/16410">http://www.adobe.com/go/16410</a></p>
<p><strong>Step 2: Add the gsp tag library</strong><br />
Download the <a title="GspTagLibrary for Dreamweaver" href="http://www.bitwalker.nl/wp-content/uploads/2007/09/gsptaglibrary.zip">GspTagLibrary for Dreamweaver</a>, unpack it and copy the gsp folder to the TagLibraries folder within the configuration folder. Add the text of gspTagLibrary.vtm to the existing TagLibraries.vtm file.</p>
<p><strong>Step 3: Enable code coloring</strong><br />
Open CodeColoring.xml (Configuration/CodeColering) in an editor and add gsp to the doctypes attribute of the entries for Html, JavaScript and CSS. Restart Dreamweaver.</p>
<p>Next step could be to add a special color schema for gsp tags and groovy when using scriptlets and maybe one day I will have time to learn how to write Dreamweaver Extensions, which would hopefully make it possible to do all of this automatically.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bloglines.com/sub/http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver" rel="nofollow" title="Add to&nbsp;Bloglines"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/bloglines.png" title="Add to&nbsp;Bloglines" alt="Add to&nbsp;Bloglines" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;Blogmarks"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/bmarks.png" title="Add to&nbsp;Blogmarks" alt="Add to&nbsp;Blogmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dzone.com/links/add.html?description=Using+GroovyServer+Pages+in+Dreamweaver&amp;url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;DZone"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/dzone.png" title="Add to&nbsp;DZone" alt="Add to&nbsp;DZone" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://fleck.com/litebookmarklet.php?url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;Fleck"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/fleck.png" title="Add to&nbsp;Fleck" alt="Add to&nbsp;Fleck" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://netvouz.com/action/submitBookmark?url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver&amp;popup=no" rel="nofollow" title="Add to&nbsp;Netvouz"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/netvouz.png" title="Add to&nbsp;Netvouz" alt="Add to&nbsp;Netvouz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.spurl.net/spurl.php?url=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;title=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;Spurl"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/spurl.png" title="Add to&nbsp;Spurl" alt="Add to&nbsp;Spurl" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver&amp;t=Using+GroovyServer+Pages+in+Dreamweaver" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.bitwalker.nl/blog/using-groovyserver-pages-in-dreamweaver/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Rails and Grails and Java</title>
		<link>http://www.bitwalker.nl/blog/rails-and-grails-and-java</link>
		<comments>http://www.bitwalker.nl/blog/rails-and-grails-and-java#comments</comments>
		<pubDate>Sun, 26 Aug 2007 21:33:56 +0000</pubDate>
		<dc:creator>Harald Walker</dc:creator>
				<category><![CDATA[agile]]></category>
		<category><![CDATA[frameworks]]></category>
		<category><![CDATA[grails]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.bitwalker.nl/blog/rails-and-grails-and-java</guid>
		<description><![CDATA[Last Friday Charles Nutter from Sun and Graeme Rocher from Skills Matter presented Ruby On Rails (mostly JRuby On Rails) and Grails at the profict Summer Camp in the beautiful Loenen (Duch countryside). Both started with a short introduction to the core languages of both frameworks &#8211; Ruby (JRuby) and Groovy &#8211; with a focus [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://www.bitwalker.nl/wp-content/uploads/2007/08/2007-08-24-12-59-13.jpg' rel="lightbox" title='Graeme Rocher and Charles Nutter preparing' rel="lightbox"><img src='http://www.bitwalker.nl/wp-content/uploads/2007/08/2007-08-24-12-59-13.thumbnail.jpg' alt='Graeme Rocher and Charles Nutter preparing' / rel="lightbox"></a rel="lightbox">Last Friday Charles Nutter from Sun and Graeme Rocher from Skills Matter presented <a href="http://www.rubyonrails.org/" rel="lightbox">Ruby On Rails</a> (mostly JRuby On Rails) and <a href="http://grails.codehaus.org/">Grails</a> at the <a href="http://java.profict.nl/index.html">profict Summer Camp</a> in the beautiful Loenen (Duch countryside). Both started with a short introduction to the core languages of both frameworks &#8211; <a href="http://www.ruby-lang.org/en/">Ruby</a> (<a href="http://jruby.codehaus.org/">JRuby</a>) and <a href="http://groovy.codehaus.org/">Groovy</a> &#8211; with a focus on Java related issues. Among other things they demonstrated quick and easy ways to create Swing interfaces. Charles used <a href="http://ihate.rubyforge.org/profligacy/">Profligacy</a> and <a href="http://cheri.rubyforge.org/">Cheri</a>, while Graeme did it with the Groovy <a href="http://groovy.codehaus.org/Swing+Builder">SwingBuilder</a>. In both languages it allowed faster Swing development with less and easier code. While this was appealing, I still believe that what Swing needs most of all, are good GUI builder applications which designers can directly use. </p>
<p><a  rel="lightbox" href='http://www.bitwalker.nl/wp-content/uploads/2007/08/2007-08-24-13-31-47.jpg' title='Only a few are using Ruby already'><img src='http://www.bitwalker.nl/wp-content/uploads/2007/08/2007-08-24-13-31-47.thumbnail.jpg' alt='Only a few are using Ruby already' /></a></p>
<p>Next, they went on showing us the Ruby On Rails (ROR) and Grails frameworks and of course demonstrated the fast creation of a simple working web-application (those famous 10 minute demos). If you want to know more about it, just follow the links, read the introduction and watch the screencasts.</p>
<p>Both Grails and Rails (when used with JRuby) allow integration with Java and a Java infrastructure. Charles for example used the <a href="https://rome.dev.java.net/">rome library</a> in Rails to generate an RSS feed and the next version of the GlassFish application server will offer special support for deployment of Rails applications. So the idea is, why not combine the best of  both worlds (Grails &#038; Java or Rails &#038; Java). </p>
<p><a rel="lightbox" href='http://www.bitwalker.nl/wp-content/uploads/2007/08/2007-08-24-14-31-42.jpg' title='Graeme and Charles during a break' rel="lightbox"><img src='http://www.bitwalker.nl/wp-content/uploads/2007/08/2007-08-24-14-31-42.thumbnail.jpg' alt='Graeme and Charles during a break' / rel="lightbox"></a rel="lightbox">As Groovy is a dynamic language written for the JVM and shares a lot of similarities with Java, I think it might be more suitable for Java teams and environments than Ruby. Grails itself is based on solid java components like Spring, hibernate, quartz, sitemesh, embedded jetty and hsqldb (80% of grails is written in Java) and offers various java related <a href="http://grails.codehaus.org/Plugins" rel="lightbox">plugins</a> (e.g. for DWR, Wicket, xFire,&#8230;). The 0.6 release of Grails (available as release candidate) will offer integrated support for Spring Webflow and the 1.0 release is due in October.</p>
<p>All in all it has been an inspiring afternoon and no matter if you favor Ruby, Grooy, Grails or Rails, these are exiting developments and if you can, learn something new and give it a try. I started to learn Ruby &#038; ROR a while ago but never really had a chance to use it practically. With Groovy &#038; Grails I think it might be different as the demand for lean and agile java development is growing.</p>
<p><a href="http://www.flickr.com/photos/sonicwalker/sets/72157601639321183/">More photos on Flickr</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.bloglines.com/sub/http://www.bitwalker.nl/blog/rails-and-grails-and-java" rel="nofollow" title="Add to&nbsp;Bloglines"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/bloglines.png" title="Add to&nbsp;Bloglines" alt="Add to&nbsp;Bloglines" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;Blogmarks"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/bmarks.png" title="Add to&nbsp;Blogmarks" alt="Add to&nbsp;Blogmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dzone.com/links/add.html?description=Rails+and+Grails+and+Java&amp;url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;DZone"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/dzone.png" title="Add to&nbsp;DZone" alt="Add to&nbsp;DZone" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://www.bitwalker.nl/blog/rails-and-grails-and-java" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://fleck.com/litebookmarklet.php?url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;Fleck"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/fleck.png" title="Add to&nbsp;Fleck" alt="Add to&nbsp;Fleck" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://netvouz.com/action/submitBookmark?url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java&amp;popup=no" rel="nofollow" title="Add to&nbsp;Netvouz"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/netvouz.png" title="Add to&nbsp;Netvouz" alt="Add to&nbsp;Netvouz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.spurl.net/spurl.php?url=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;title=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;Spurl"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/spurl.png" title="Add to&nbsp;Spurl" alt="Add to&nbsp;Spurl" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://www.bitwalker.nl/blog/rails-and-grails-and-java" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://www.bitwalker.nl/blog/rails-and-grails-and-java&amp;t=Rails+and+Grails+and+Java" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.bitwalker.nl/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.bitwalker.nl/blog/rails-and-grails-and-java/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
