报的是
org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/xml) cannot be resolved in either web.xml or the jar files deployed with this application
错误
org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/xml) cannot be resolved in either web.xml or the jar files deployed with this application
错误
解决方案 »
- java jxl 导出excel出现代码走完 页面不出现下载对话框
- 用tablesorter的问题!
- 学java的人太多了,造成java越来越垃圾,工价越来赵低
- 菜鸟问题 大虾帮忙下 在线等 急!!!!
- 关于对象传递的问题
- 我一个页面,从别的页面接收了参数,当前页没有提交功能,在当前页刷新后,怎样保留从别的页面传过来的参数?不用session
- jsp页面怎么探测服务器是否支持Jmail组件
- 急,请高手指点
- 如何判断未声明变量?
- 请问各位大侠:如何在页面中设置,使当不能显示APPLET时候,自动让用户去我们自己的tomcat服务器(局域网内)而不要从sun站点上下载JAVA
- 一个JSP做的留言本的问题
- 表格...
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>试试
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/core.tld</taglib-location>
</taglib><taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
<taglib-location>/WEB-INF/tld/xml.tld</taglib-location>
</taglib
http://java.sun.com/jsp/jstl/core /WEB-INF/core.tld http://java.sun.com/jsp/jstl/xml /WEB-INF/tld/xml.tld hhhhhhhhhhhhhhhhhhhhhh test1 test2
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/core.tld</taglib-location>
</taglib><taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
<taglib-location>/WEB-INF/tld/xml.tld</taglib-location>
</taglib><%@ page contentType="text/html;charset=GB2312" language="java"%>
<html>
<head>
<title>无标题文档</title>
</head>
<body>
hhhhhhhhhhhhhhhhhhhhhh
<X:set var="xmlTest">
<a>
<b>
<c>
test1
</c>
</b>
<d>
test2
</d>
</a>
</c:set>
<x:parse var="myxml" xml="${xmlTest}"/>
<x:out select="$myxml/a/b/c"/>
<x:out select="$myxml/d"/>
</body>
</html>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"%>
换成<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
试试
<%@ page contentType="text/html;charset=GB2312" language="java"%>最好放到第一行,然后把language="java"给去掉
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/core.tld</taglib-location>
</taglib><taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
<taglib-location>/WEB-INF/tld/xml.tld</taglib-location>
</taglib>
还有xml.tld,core.tld也要放到WEB-INF目录下
然后把jstl.jar和另外一个我不记得名字的包拷进来,
你也可以干脆把TOMCAT下的jsp-example下的WEB-INF文件夹下的除classes目录外的那些文件铐过来直接用。
造成这种错误的原因是你的<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"%>指向的SUN公司服务器上的JAR包,如果你的机器无法连网,当然就没有用了,所以要在web.xml里面做映射