title: Grails.View: Embedding pdf from resources
body: <p>I have this problem embedding a <code>.pdf</code> file located in the folder <code>web-app\files\[name]</code> to the <code>.gsp</code>.</p>
  
  <p>For example I have this file on this location:</p>
  
  <blockquote>
    <p>\web-app\files\tester\test.pdf</p>
  </blockquote>
  
  <p>I have this code in my <code>.gsp</code> having a model entity from its controller: <code>name:String</code> and <code>fileName:String</code></p>
  
  <pre><code>&lt;embed src="${resources(dir:'files/' + name, file:fileName + '.pdf')"&gt;
  </code></pre>
  
  <p>The problem is that I can't have it displayed on the embed folder and when I checked the code, it gives me <code>src="/ProjectName/static/files/[name]/[fileName].pdf"</code></p>