痛并期待着……大虾们帮我看看这个jstl中的xml的标签问题(血书:跪求)(第五次了我不相信没人会)

wangyunfeng1990 2004-08-25 08:36:50
刚学jstl,遇到一个问题,一下是源码,大家帮我看看,这到底是怎么回事(代码很短,请高手们赐教)
x_parse.jsp
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %>
<%@ page contentType="text/html;charset=gb2312" %>
<html>
<body>
<x:parse var="bookxml">
<books>
<book id="01">
<name>jsp 应用开发详解</name>
<price>59</price>
</book>
</books>
</x:parse>
<x:out select="$bookxml/books/book/name"/>
</body>
</html>
一运行会出现如下问题(用的是tomcat5.0.19,在以前运行jstl中的c标签时能正常运行,应该下载的jstl没问题)
type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: org/jaxen/NamespaceContext
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.x_005fparse_jsp._jspService(x_005fparse_jsp.java:74)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


root cause

java.lang.NoClassDefFoundError: org/jaxen/NamespaceContext
org.apache.taglibs.standard.tag.common.xml.ExprSupport.doStartTag(ExprSupport.java:101)
org.apache.taglibs.standard.tag.el.xml.ExprTag.doStartTag(ExprTag.java:103)
org.apache.jsp.x_005fparse_jsp._jspx_meth_x_out_0(x_005fparse_jsp.java:125)
org.apache.jsp.x_005fparse_jsp._jspService(x_005fparse_jsp.java:64)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


note The full stack trace of the root cause is available in the Tomcat logs.
...全文
48 点赞 收藏 1
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
zhaoqiubo 2004-08-25
到这里看看www.cndev-lab.com
回复
相关推荐
发帖
Web 开发
创建于2007-09-28

8.0w+

社区成员

Java Web 开发
申请成为版主
帖子事件
创建了帖子
2004-08-25 08:36
社区公告
暂无公告