title: Missing taglib when using GroovyPagesTemplateEngine
body: <p>I've been processing dynamic GSP content via tags in my own taglib which works just fine using code like:</p>
  
  <pre><code>    def GroovyPagesTemplateEngine groovyPagesTemplateEngine
      ...
      def processGSPContent(model, name, out) {
          log.debug("model is $model")
          Template t = groovyPagesTemplateEngine.createTemplate(model.content, name + ".gsp")
          Writable w = t.make(model: model)
          w.writeTo(out)
      }
  </code></pre>
  
  <p>Now I'm not 100% sure on how various resources like taglibs are found, but all my taglibs work fine as do the normal grails libs.</p>
  
  <p>The problem I have is that <code>AcegiSecurity</code>'s tags aren't found in content processed this way: e.g.</p>
  
  <pre><code>&lt;g:isLoggedIn&gt;
     You're logged in :-)
  &lt;/g:isLoggedIn&gt;
  </code></pre>
  
  <p>so how do I get <code>GroovyPagesTemplateEngine</code> to find the <code>AcegiSecurity</code> tags?
  I'm guessing it may be something to do with <code>ApplicationContext</code> or <code>ServletContext</code>.</p>
  
  <p>edit---
  Looks like it might be an overloaded namespace problem: </p>
  
  <pre><code>    Caused by: org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Tag [ifnotloggedin] does not exist. 
  No tag library found for namespace: g at home_pmcneil_devel_Groupie_grails_app_views_display_page_gsp.run(home_pmcneil_devel_Groupie_grails_app_views_display_page_gsp:32) 
  </code></pre>