<%@page contentType="text/html;charset=GB2312"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%><html>
    <head><title>CH6 Param.jsp</title></head>
    <body>
        <h2 >隐含对象param,paramValues</h2>
        <fmt:requestEncoding value="GB2312"/>        姓名: ${param.username}<br>
        密码: ${param.password}<br>
        性别: ${param.sex}<br>
        年龄: ${param.old}<br>
        兴趣: ${paramValues.bahit[0]}
               ${paramvalues.habit[1]}    
    </body>
</html>
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

这个错误什么意思?无法连接这个网址上的资源吗?

解决方案 »

  1.   

    无法连接这个网址上的资源.
    你是不是不能上网呀。要不就是你的那个url不对,仔细看看。
      

  2.   

    这http://java.sun.com/jsp/jstl/core路径有问题
      

  3.   

    可以把url地址设置成本地目录,指向c.tld以及fmt.tld文件
      

  4.   

    包引进来,路径就不是url啦,是com.sun....
      

  5.   


    <%@ taglib prefix="c" uri="/WEB-INF/c.tld"%>
    <%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld"%>
    把jstl的标签库文件*.tld放到/WEB-INF目录下