<?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; gsp</title>
	<atom:link href="http://www.bitwalker.nl/blog/category/gsp/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>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>
	</channel>
</rss>
