Can not find the tag library descriptor for http://www.springframework.org/tags/form 解决方法
1. 今天在写东西的时候突然遇到这个问题:
For Spring 3 the tag library specified in the tag library directive (http://www.springframework.org/tags/form) is in the org.springframework.web.servlet-3.x.x.jar file. The URI in the directive must match the URI in the META-INF/spring-form/tld file in this jar file which is <uri>http://www.springframework.org/tags/form</uri>The container (at least Tomcat 7.0 does) will match the URI in the taglib directive of the jsp file, with the URI in the spring-form.tld file provided org.springframework.web.servlet jar-3.xx.jar is in the WEB-INF/lib directory.If you also add an entry to web.xml for the same tag library like:
<jsp-config>
<taglib>
<taglib-uri>http://www.springframework.org/tags/form</taglib-uri>
<taglib-location>spring-form.tld</taglib-location>
</taglib>
</jsp-config>then the container will only look for WEB-INF/spring-form.tld and will not find the tld in the jar file. To make this work you need to manually extract the spring-form.tld from the jar file and add it to the WEB-INF directory. I don't know of any good reason to do this and suspect that having an entry in web.xml is historic and now only causes confusion.
1. 大意是说:http://www.springframework.org/tags/form这个标签库是由org.springframework.web.servlet-3.x.x管理的。对于jsp引擎去解析这个标签库的时候,他是在org.springframework.web.servlet-3.x.x / META-INF/spring-form.tld这个tld文件中查找的。因此只需要在spring-web中有这个tld文件就行了!但是为什么我的这个标签就是无法解析呢???
我此时用的是spring-web.3.2.4.RELEASE版本,我在org.springframework.web.servlet-3.2.4中居然没有找到/META-INF/spring-form.tld文件!!!这难道是版本不兼容的问题,于是我重新换了spring-web.3.2.2.RELEASE版本,这个问题就解决了。。。
2. 用web.xml文件中添加<jsp-config>标签我试过了好像不行,但是也没深究,只要上面能解决问题就行了。。。
我猜测应该是新版本的问题吧。。。
参考:http://forum.spring.io/forum/spring-projects/web/74017-the-absolute-uri-http-www-springframework-org-tags-form-cannot-be-resolved
Can not find the tag library descriptor for http://www.springframework.org/tags/form 解决方法相关推荐
- Can not find the tag library descriptor for http://java.sun.com/jsp/jstl/
jsp页面引入外部的标签<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> ...
- Can not find the tag library descriptor for http://java.sun.com/jsp/jstl/core
在eclipse的jsp里面出现这个错误,主要是缺少.jar文件或是你的.jar版本不匹配. 主要是:JSTL.jar 和 Standard.jar 文件. 去重新下载一下,然后添加到你的lib文件里 ...
- Can not find the tag library descriptor for /struts-tags问题
解决办法: 1.struts.xml位置没有放正确,将struts.xml 放到src目录下,redeploy 2.没有正确导入struts库,把struts2相关的几个lib放在工程的WEB-INF ...
- Can not find the tag library descriptor for “http://java.sun.com/jsp/jstl/core“
解决: 在WEB-INF/lib里加入 jstl.jar standard.jar两个包即可解决这个问题
- 废弃第三方库导致的library not found for -lXXXXX(linker command failed ) 完美解决方法
编译错误是让人头疼错误,它没有指向具体代码而是指向第三方库的编译错误.有的库可能我们以前使用,现在不再使用,把它删除了或通过Podfile文件修改重新更新了,但是它还是给我们捣乱.通常是对它没有删除干 ...
- Implicitly declaring library function ‘scanf‘ with type ‘int (const char *restrict, ...)‘解决方法
出现此问题的原因是因为使用printf和scanf输入输出函数时没有加头文件 #include <stdio.h>,加上就行了.
- 'django_tables2' is not a registered tag library. Must be one of:
报错来自django-oscar(实验是何敏煌的书第十三章)打开dashboard的某个按钮的时候 TemplateSyntaxError at /dashboard/catalogue/ 'djan ...
- manually set focus for tag library
https:///wiki/display/WEBCUIF/Tag+Library+FAQ#TagLibraryFAQ-HowcanIsetthefocustoanInputfieldorDDLBin ...
- No tag datetimepicker defined in tag library imported with prefix s解决
今天在学习Struts2标签中的datetimepicker出现这样一个exception: No tag "datetimepicker" defined in tag libr ...
最新文章
- redis学习之redis基本数据类型以及Jedis
- silverlight中递归构造无限级树treeview+checkbox
- WIN10 中mysql8 忘记密码
- BZOJ1795 : [Ioi2008]Pyramid Base 金字塔地基
- 为什么总是有人说Java啰嗦,却没人说C++啰嗦?
- 技术人员兼职招聘平台HourlyHerd融资2200万美元C轮融资
- iOS开发-仿大众点评iPad侧边导航栏
- Ubuntu 系统进不去 左上角减号
- css横向排列_前端初学者李不白,html+css的角度,带你分析蘑菇街官网!!!
- python数据抓取与实战_Python数据抓取技术与实战 pdf
- 《嵌入式 – GD32开发实战指南》第8章 PWM输出
- android 动态壁纸 时钟,Android动态时钟壁纸开发
- np.mat()和np.transpose
- 国人自研开源项目,一款简单易用的 GitLab 替代品
- 动态电压恢复器(DVR)模型 Matlab/simulink
- “黑产“识别算法(社区检测,相似度,关联关系)
- 存储公司芯天下IPO上市申请获受理---义嘉泰骄傲的合作伙伴
- 浅谈计算机网络及交换机基础配置
- 共享单车c语言项目,共享单车项目分析
- AI在招聘领域的这些应用,你会是被第一轮淘汰的吗