找不到springframework的标签库描述符 [英] Can not find the tag library descriptor of springframework

查看:211
本文介绍了找不到springframework的标签库描述符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用spring JPetStore的示例,但是在引用lib标签spring的行中的JSP页面中出现错误:

I'm trying to follow the example of spring JPetStore but I get an error in the JSP pages in the line that references the lib tag spring:

找不到http://www.springframework.org/tags的标签库描述符

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>

这个库的URL是什么?

What is the URL of this library?

有没有办法避免直接依赖这个URL?

Is there any way to avoid the direct dependence on this URL?

提前致谢

推荐答案


  1. 下载Spring依赖jar

  2. 将它放到lib文件夹路径是/WEB-INF/lib/spring.jar

  3. 然后打开web.xml,示例代码为:

  1. Download the Spring dependency jar
  2. Place it to the lib folder path is /WEB-INF/lib/spring.jar
  3. Then open the web.xml and the sample code is:

<taglib>
  <taglib-uri>/WEB-INF/spring.tld</taglib-uri>
  <taglib-location>/WEB-INF/spring.tld</taglib-location>
</taglib>


  • 然后指示jar文件位于你的系统中的taglib。

  • Then the taglib is indicated where the jar file locates in ur system.

    <%@ taglib prefix="spring" uri="/WEB-INF/spring.tld" %>
    


  • 这篇关于找不到springframework的标签库描述符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆