I need to render a template from a plugin to a .gsp page. I wrote : <g:render plugin="melanin 2.0.0" template="/m-melanin-fingerprint/m-melanin-fingerprint-sidebar"/>
But then I get this error :
Error 500: Error processing GroovyPageView: Template not found for name [/m-melanin-fingerprint/m-melanin-fingerprint-sidebar] and path [/m-melanin-fingerprint/_m-melanin-fingerprint-sidebar.gsp] Servlet: grails URI: /RBCS/grails/VIBAction/index.dispatch Exception Message: Template not found for name [/m-melanin-fingerprint/m-melanin-fingerprint-sidebar] and path [/m-melanin-fingerprint/_m-melanin-fingerprint-sidebar.gsp] Caused by: Error processing GroovyPageView: Template not found for name [/m-melanin-fingerprint/m-melanin-fingerprint-sidebar] and path [/m-melanin-fingerprint/_m-melanin-fingerprint-sidebar.gsp] Class: actionPlan.gsp At Line: [40] Code Snippet: 39: 40: 41:
This is my project:
Please help me fix it. Sorry my English is not good. Thank you.
尝试从您的plugin-ref中删除该版本:
<g:render plugin="melanin" template="/m-melanin-fingerprint/m-melanin-fingerprint-sidebar"/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.