当前位置: 代码迷 >> Java Web开发 >> File "/WEB-INF/tiles-jsp.tld" not found解决办法
  详细解决方案

File "/WEB-INF/tiles-jsp.tld" not found解决办法

热度:1297   发布时间:2016-04-16 21:27:33.0
File "/WEB-INF/tiles-jsp.tld" not found
  严重: Servlet.service() for servlet [jsp] in context with path [/Test01] threw exception [/user/user_add.jsp (line: 3, column: 0) /common/top.jsp (line: 2, column: 54) File "/WEB-INF/tiles-jsp.tld" not found] with root cause
org.apache.jasper.JasperException: /user/user_add.jsp (line: 3, column: 0) /common/top.jsp (line: 2, column: 54) File "/WEB-INF/tiles-jsp.tld" not found
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)

帮我看看到底是哪里的路径错了




------解决思路----------------------
不要放在WEB.INF里面,那里面都是放jar包和配置文件的
------解决思路----------------------
<description>A tag library exercising SimpleTag handlers.</description>
    <tlib-version>1.0</tlib-version>
    <short-name>xxx</short-name>
    <uri>xxx</uri>//引用的最好引用这里的xxx,而不是你tld文件所在的路径。
------解决思路----------------------
[img=http://img.my.csdn.net/uploads/201303/04/1362370874_8721.jpg]
uri改成/WEB-INF/tld/tiles-jsp.tld
------解决思路----------------------
在那个tld中配置uri。
 <!-- 标签库的版本号 --> 
  <tlib-version>1.0</tlib-version>
  <!-- 标签库的默认前缀 -->
  <short-name>eportal</short-name>
  <!-- 标签库的默认URI -->
  <uri>/。。</uri>
  相关解决方案