title: How to include jquery.js in Grails?
body: <p>I have a Grails 2.0.0 project that was created using <code>grails create-app</code>. In my HTML and GSP files, I'm trying to include <code>jquery.js</code>. I've tried all of the following without success:</p>
  
  <pre><code>&lt;script type="text/javascript" src="jquery/jquery-1.7.1.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="jquery/jquery.js"&gt;&lt;/script&gt;
  &lt;g:javascript library="jquery"/&gt;
  </code></pre>
  
  <p>The first two <code>&lt;script&gt;</code> tags results in 404 Not Found (verified with Firebug). The <code>&lt;g:javascript&gt;</code>tag results in nothing being included (verified using view source).</p>
  
  <p>On my Grails application's home page, it indicates that jquery 1.7.1 is installed (under "INSTALLED PLUGINS").</p>
  
  <p>What is the correct way in Grails to include the jquery .js file?</p>
  
  <p><strong>Follow-up:</strong> The .GSP file:</p>
  
  <pre><code>&lt;%@ page contentType="text/html;charset=UTF-8" %&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Test&lt;/title&gt;
      &lt;g:javascript library="jquery/jquery"/&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Test&lt;/h1&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Results in the follow HTML source:</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Test&lt;/title&gt;
  
    &lt;/head&gt;
    &lt;body&gt;
      &lt;h1&gt;Test&lt;/h1&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Note the lack of jquery.js being included.</p>
  
  <p><strong>Follow-up 2:</strong></p>
  
  <p>I'm creating my app using <code>grails create-app</code>:</p>
  
  <pre><code>13:56:40 ~/grailsDev $ grails create-app helloworld
  | Created Grails Application at /Users/steve/grailsDev/helloworld
  13:56:57 ~/grailsDev $ cd helloworld/
  13:57:06 ~/grailsDev/helloworld $ ls -al web-app/js
  total 8
  drwxr-xr-x  3 steve  staff  102 Jan 21 13:56 .
  drwxr-xr-x  7 steve  staff  238 Dec 15 08:04 ..
  -rw-r--r--  1 steve  staff  183 Dec 14 22:56 application.js
  13:57:23 ~/grailsDev/helloworld $ grails -version
  
  Grails version: 2.0.0
  </code></pre>