论坛首页 Java企业应用论坛

在使用JSP Standard Tag Library 中遇见一个奇怪问题!

浏览 8135 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2004-08-10  
我将jstl.jar拷进了war/WEB-INF/lib中。然后在index.jsp页面中

写了如下语句:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:redirect url="/hello.htm"/>

运行时tomcat4.1.30报错如下:
org.apache.jasper.JasperException: /index.jsp(0,0) This absolute uri (http://java.sun.com/jstl/core) cannot be

resolved in either web.xml or the jar files deployed with this application

我明明已把jstl.jar拷进去了为什么还说无法解析uri啊?请知道的弟兄指点一二!
   发表时间:2004-08-10  
stander.jar
0 请登录后投票
   发表时间:2004-08-11  
在web.xml文件中加
<taglib>
    <taglib-urihttp://java.sun.com/jstl/core</taglib-uri>
    <taglib-location>tld文件地址</taglib-location>
</taglib>
看这样行不行。
0 请登录后投票
   发表时间:2004-08-11  
Jesse_Dht 写道
在web.xml文件中加
<taglib>
    <taglib-urihttp://java.sun.com/jstl/core</taglib-uri>
    <taglib-location>tld文件地址</taglib-location>
</taglib>
看这样行不行。


我这样做了,还是报错啊!

楼上的兄弟说的stander.jar在什么地方找得到??
0 请登录后投票
   发表时间:2004-08-11  
谢谢楼上的两位。问题解决了!

把standerd.jar文件拷进lib文件夹即可!!:)

再次感谢!!
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics