请问我应该如何在JRUN 4里面设置JSTL(100分)

L

lotte

Unregistered / Unconfirmed
GUEST, unregistred user!
测试JSP网页如下:
<%@ page contentType="text/html;
charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=gb2312">
<title>查询系统----查询一</title>
</head>
<body>
<jsp:useBean id="clock" scope="page" class="java.util.Date"/>
<c:chose>
<c:when test="${clock.hours < 12}">
Good Morning !
</c:when>
<c:when test="${clock.hours < 18}">
Good day !
</c:when>
<c:eek:therwise>
Good Evening !
</c:eek:therwise>
</c:chose>
</body>
</html>
可是我在客户端访问该页面的时候却出现如下错误信息:
500 The path http:/java.sun.com/jstl/coredo
es not start with '/'
The path http:/java.sun.com/jstl/coredo
es not start with '/'
 
小弟急呀,请哪位高手解答一下!
 
在web.xml要设
 
能否详细说明一下如何设置?谢谢
 
我没有在WEB.XML里面设置
我直接把TLD和LIB文件拷贝到WEB-INF文件夹中,然后将TAGLIB改成下面的
<%@ taglib prefix="c" uri="/WEB-INF/c.tld"%>
可是客户端显示如下错误信息:
3 error(s) found in /program/cx_system/cx_1.jsp
The tag chose was not in the tag library http://java.sun.com/jsp/jstl/core [prefix=c,uri=/WEB-INF/c.tld]
(12) The tag when's handler class org.apache.taglibs.standard.tag.rt.core.WhenTag was not found in the classpath
(18) The tag otherwise's handler class org.apache.taglibs.standard.tag.common.core.OtherwiseTag was not found in the classpath
再次刷新出现下面的错误:
500 JSPTranslator.CouldNotLoadClass/program/cx_system/cx_1.jsp
JSPTranslator.CouldNotLoadClass/program/cx_system/cx_1.jsp
怎么回事呢?
是不是只能修改WEB.XML啊?
我这种方式可行吗?
望指教!
 
OK,我已经设置好了,谢谢这位兄台!
 
接受答案了.
 
顶部