`

在JSP中This absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved ……的解

阅读更多
关于JSP中org.apache.jasper.JasperException:
       This absolute uri http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application

       照着《精通JSP--Web开发技术与典型应用》敲了一段JSTL的代码。没想到报错了。为这个问题搞了一下午,坐得屁股疼……

       我的开发环境是Eclipse 3.2.0、Myeclipse 5.0、Tomcat 5.0.28(它用的是JRE1.4)和JDK1.5

       从网上搜了一下,相同的说法是:一个就是JSTL的版本问题(1.0与1.1),是否不一致。还有就是检查虚拟目录下WEB-INF目录下的lib文件夹(如果同有lib文件夹,后动创建一个)中是否有jstl.jar和standard.jar两个jar包,如果没有则把它们复制到lib下面。

       都试了,不过报错依旧……后来又找了一下加上自己的乱搞,按照上面的改过之后,大体有两种解决方法:

       第一种就是在Eclipse的工程中导入JSTL1.1后,下载JSTL1.1  http://jakarta.apache.org/taglibs/index.html
然后解压,把*.jar和*.tld放到/WEB-INF/lib目录下。也就是将所有的jakarta-taglibs-standard-current.zip(JSTL的类库)中的.jar和.tlb放到WEB-INF目录下的lib文件夹中,JSP文件中导入<%@ taglib prefix="c" uri="/WEB-INF/lib/c.tld" %>,经试验是可以的。

       第二种是修改web.xml,加上下面的语句:

<jsp-config>

   <taglib>

    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>

    <taglib-location>/WEB-INF/c.tld</taglib-location>

   </taglib>

   <taglib>

    <taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>

    <taglib-location>/WEB-INF/x.tld</taglib-location>

   </taglib>

   <taglib>

    <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>

    <taglib-location>/WEB-INF/fmt.tld</taglib-location>

   </taglib>

   <taglib>

    <taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>

    <taglib-location>/WEB-INF/sql.tld</taglib-location>

   </taglib>

</jsp-config>


       JSP中导入<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>。应该就可以了……

推荐第二种^_^!
分享到:
评论

相关推荐

    使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core],

    无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl/core],解决办法:WEB/INF的lib下,除了导入jstl.jar包,还要导入standard.jar包。另外,解压standard.jar包,把.tld文件...

    【SSS】taglibs&&jstl;

    HTTP Status 500 - 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

    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd

    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd

    JSTL 发生jar包错误

    JSTL 标签 发生 uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application问题时解决方法

    无法在web.xml或使用此应用程序部署的jar文件中解析绝对uri:[http://java.sun.com/jsp/jstl

    免费下载,解压后将tld和lib文件夹放入WEB-INF下面即可,绝对有效立竿见影

    解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法

    解决fatal:remote error:You can’t push to git://github.com/username/*.git问题的办法 今天Git push的时候 fatal:remote error: You can't push to git://github.com/username/*.git Use git@github....

    eclipse 打开资源文件地址 linux版本

    NULL 博文链接:https://inter12.iteye.com/blog/765999

    JSTL标签大全

    核心标签库 http://java.sun.com/jstl/core c &lt;c:tagname…&gt; 国际化标签(I18N) http://java.sun.com/jstl/fmt fmt &lt;fmt:tagname…&gt; SQL标签库 ...

    jstl-jar包.zip

    &lt;%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%&gt; &lt;%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%&gt; &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%&gt;

    JSTL标签-讲解及实例

    Core http://java.sun.com/jstl/core c &lt;c:tagname ...&gt; XML processing http://java.sun.com/jstl/xml x &lt;x:tagname ...&gt; I18N capable formatting http://java.sun.com/jstl/fmt fmt &lt;fmt:tagname ...&gt; ...

    jstl标签在jsp中使用问题

    在web项目中使用JSTL标签,JSTL 1.0 的声明是 &lt;%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %&gt; ...以解决http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml错误

    jstl el taglib 完整jar包

    &lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt; XML LIBRARY &lt;%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %&gt; FMT LIBRARY &lt;%@ taglib prefix="fmt" uri=...

    JSTL包和standrad包

    在web项目中使用JSTL标签,JSTL 1.0 的声明是 &lt;%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %&gt; ...以解决http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml错误

    使用JSTL所需要的jar包

    The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or t 最终查到问题是 jstl.jar 包在ide项目中有,但在tomcat发布的应用WEB-INF/lib下没有,这是工具发布项目的问题,...

    jetty的main启动代码及相关jar包

    jetty的main启动代码及相关jar包: ...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 导入jsp-api.jar就可以解决。

    关于jsp页面使用jstl的异常分析

    @ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core” %&gt; 2.如果jsp页面报如下异常 org.apache.jasper.JasperException: java.lang.ClassNotFoundException: org.apache.jsp.Customer.addCustomerInfo_...

    nginx安装教程

    sudo ./configure sudo make sudo make install # 安装zlib库 cd /usr/local/src sudo wget http://zlib.net/zlib-1.2.11.tar.gz sudo tar -zxvf zlib-1.2.11.tar.gz cd zlib-1.2.11 sudo ./configure sudo make ...

    JSTL用到的jstl.jar,standard.jar

    **The absolute uri:http://java.sun.com/jsp/jstl/core(也可能是http://java.sun.com/jstl/core) cannot be resolved in either web.xml or the jar files deployed** 可能二:项目目录下WEB-INF/lib下没有jstl.jar...

    使用IDEA编写jsp时EL表达式不起作用的问题及解决方法

    在使用IDEA开发maven+springMVC...@ taglib uri=http://java.sun.com/jsp/jstl/core prefix=c %&gt; &lt;&#37;@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt %&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;

    ContentProvider

    public Uri insert(Uri uri, ContentValues values) { // TODO Auto-generated method stub sqLiteDatabase=myOpenHelper.getWritableDatabase(); int flag=URI_MATCHER.match(uri); switch (flag) { ...

Global site tag (gtag.js) - Google Analytics