当前位置: 代码迷 >> Java Web开发 >> 下了个JSTL,路径也设置了就是不能用。
  详细解决方案

下了个JSTL,路径也设置了就是不能用。

热度:122   发布时间:2007-03-16 12:10:20.0
下了个JSTL,路径也设置了就是不能用。

把所有的tld文件放到了工程的WEB-INF目录下了,可在eclipse中的目录中看不到这些tld文件
在web.xml文件中添加了下面的东西却出错,不知道是怎么回事??

<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
<taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
<taglib-location>/WEB-INF/c-rt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
<taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>

<taglib>
<taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
<taglib-location>/WEB-INF/x-rt.tld</taglib-location>
</taglib>

搜索更多相关主题的帖子: tld  JSTL  web  路径  taglib  

----------------解决方案--------------------------------------------------------

JSP的JSTL是需要你导入到工程的LIB目录下的,也是几个JAR包!
用Eclipse导入之后可以看到啊?怎么看不到
包都在WEB-INF/lib/中


----------------解决方案--------------------------------------------------------
这个问题已经解决了,只要在新建工程的时候选上使用jstl就可以了,myeclipse自带的!
----------------解决方案--------------------------------------------------------