[英]Springboot GSP - Tag [form] does not exist. No tag library found for namespace: g
I'm writing a website using Springboot (java) and GSP. 我正在使用Springboot(java)和GSP编写网站。
I've managed to get GSP working for the most part, dependencies installing fine, layouts/templates working etc 我设法使GSP大部分工作,依赖项安装良好,布局/模板工作正常等
However when I try and use the <g:form>
tag, I get an error: 但是,当我尝试使用<g:form>
标记时,出现错误:
Tag [form] does not exist. 标签[form]不存在。 No tag library found for namespace: g 找不到名称空间的标签库:g
The code I'm using: 我正在使用的代码:
<g:form name="myForm" action="/users/register" method="post">
<input type="submit" value="Submit" />
</g:form>
To eliminate the possibility that it's a problem with running gsp entirely, I've tried using the <g:each>
.... </g:each>
tag, and that worked perfectly well. 为了消除完全运行gsp的问题的可能性,我尝试使用<g:each>
.... </g:each>
标记,并且效果很好。
The grails dependency version I have is 2.5.2 The groovy dependency version I have is 2.4.4 我拥有的grails依赖版本为2.5.2我具有的Groovy依赖版本为2.4.4
Thanks for any help. 谢谢你的帮助。
GSP Spring Boot does not support the Form tag library and many other GSP features and is not actively maintained. GSP Spring Boot不支持Form标记库和许多其他GSP功能,并且没有得到积极维护。 There are many things to be changed and configured to get the same experience as you get when you use GSP with Grails. 需要进行许多更改和配置,以与使用GSP和Grails时获得相同的体验。
That's why we created Rabbtor . 这就是为什么我们创建Rabbtor的原因。 Please see the link for the documentation on what we did, why , and how you can use it. 请参阅文档链接,了解我们的工作,目的以及使用方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.