首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

File "/WEB-INF/tiles-jsp.tld" not found解决方案

2013-03-06 
File /WEB-INF/tiles-jsp.tld not found严重: Servlet.service() for servlet [jsp] in context with pa

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)
帮我看看到底是哪里的路径错了
File "/WEB-INF/tiles-jsp.tld" not found解决方案
File "/WEB-INF/tiles-jsp.tld" not found解决方案

path exception
[解决办法]
不要放在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>

热点排行