注册 登录
编程论坛 J2EE论坛

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

风月_无边 发布于 2007-03-16 12:10, 1075 次点击

把所有的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>

2 回复
#2
hardes2007-03-18 14:41

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

#3
风月_无边2007-03-18 16:37
这个问题已经解决了,只要在新建工程的时候选上使用jstl就可以了,myeclipse自带的!
1