JSP页面解决C标签的问题
我的JSP页面引进了C标签后,访问页面的时候就报错!
C标签是这样的 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
错误是这样的 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
然后删掉C标签的那句话就可以出来页面 也不知道为什么!
求高手帮忙解决下 !
你有没有在引入jstl的jar文件。
试试这样做:
http://www.apache.org/dist/jakarta/taglibs/standard/jakarta-taglibs-standard-current.zip
下载一下这个文件
把里面的standard.jar放到你项目的lib里面
<%@ taglib prefix="c" uri="/WEB-INF/lib/c.tld"%>
如果包都放在了WEB-INF/lib下,那么你这样引用下。
或者你在web.xml中添加
XML code:
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
</jsp-config>
1.下载:
http://www.apache.org/dist/jakarta/taglibs/standard/jakarta-taglibs-standard-current.zip
2.
<%@ taglib prefix="c" uri="/WEB-INF/lib/c.tld"%>
3.在
相关问答:
我的开发的平台是Myeclipes6.0 + tomcat5.x + mysql
我所有的编码方式都是用的UTF-8
我只用了Strtus框架
在一个form中如下用的是post的提交方式:
<form class="form" action=&quo ......
问题1.
如何通过RandomAccessFile类的seek()方法将指针移动到文件末尾,再用writeChars(String s)将数据写入某个文档文件
问题2.
StringTokenizer是什么东西,干嘛用的?
由于小弟初学js ......
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jas ......
我想登录后,如果登录成功就去执行某个页面
我现在的代码是这样的:
if(rs.next()){
session.setAttribute( "username" , user);
<jsp:include page="login.jsp" />// ......