简体   繁体   English

Springboot GSP-标签[form]不存在。 找不到名称空间的标签库:g

[英]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.

相关问题 找不到JSF 2.1.13自定义组件:标签库支持命名空间: <namsepace> 但没有为名称定义标签: <compositecomponent> - JSF 2.1.13 custom component not found: Tag Library supports namespace: <namsepace> but no tag was defined for name: <compositecomponent> 为标签片段找到了意外的名称空间前缀“钱包” - Unexpected namespace prefix “wallet” found for tag fragment 在 weblogic 11g 上部署时,找不到带有此 URI -AjaxAnywhere 的标记库 - No tag library could be found with this URI -AjaxAnywhere when deployed on weblogic 11g NETBEANS 7.4:“未为名称定义任何标记:注册” +“未为命名空间http://java.sun.com/jsf/composite/my_composite_component找到库” - NETBEANS 7.4: “no tag was defined for name: register” + “No library found for namespace http://java.sun.com/jsf/composite/my_composite_component” 如何通过标签检查元素是否存在? - How to check does element exist by tag? 为标签LinearLayout找到了意外的名称空间前缀“ xmlns”(xmlns:tools错误) - Unexpected namespace prefix “xmlns” found for tag LinearLayout (xmlns:tools ERROR) Apache httpclient不存在。 错误 - Apache httpclient does not exist. Error <p:lineChart>标记库支持名称空间:http://primefaces.org/ui,但未为名称定义任何标记:lineChart - <p:lineChart> Tag Library supports namespace: http://primefaces.org/ui, but no tag was defined for name: lineChart 从标签中删除命名空间 - Remove Namespace from tag netbeans没有为此命名空间找到的库 - netbeans no library found for this namespace
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM