Changing Grails default index.gsp page? -


i want change grails default index page 1 had designed.. in newly created gsp file include css css not written inside .gsp file, out side of it..when tried put css file , index file in app view folder , when run app it's not displaying showing error that

enter image description here

  1. you should put .css files web-app/css directory
  2. use <g:resource tag make valid url such resources (correct url going /prqapp/css/base.css, not /css/base.css).

so, code should looks like:

<link type="text/css" href="${resource(dir: 'css', file: 'base.css')}" /> <link type="text/css" href="${resource(dir: 'css', file: 'layout.css')}" /> <link type="text/css" href="${resource(dir: 'css', file: 'skeleton.css')}" /> 

see docs


Comments