`
lym6520
  • 浏览: 695890 次
  • 性别: Icon_minigender_1
  • 来自: 福建
社区版块
存档分类
最新评论

jstl 使用与web.xml的版本关系

 
阅读更多
不同web.xml文件对jstl引用的影响,若web.xml(Servlet 2.3)内如如下:
<!DOCTYPE web-app
        PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
        "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
...
</web-app>

则jsp无法引用1.1版本的jstl,只能引用1.0版本的jstl。

需要使用Servlet 2.5版本的web.xml方能使用1.1版本的JSTL,web.xml内如如下:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee   http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
...
</web-app>



附:
jstl 1.0 uri: http://java.sun.com/jstl/core
jstl 1.1 uri: http://java.sun.com/jsp/jstl/core
0
2
分享到:
评论
2 楼 lym6520 2012-05-07  
还请指教一二。
1 楼 xianwu13 2012-05-07  
狗屁不是,自己都没有搞明白内在这瞎扯淡 麻  痹的

相关推荐

    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...

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

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

    JSTL必要包(jstl.jar和standard.jar)

    解决struts2中报错:“HTTP Status 500 - 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 ...

    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问题时解决方法

    jstl-1.2.jarJAR包.rar

    这个是一个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,遇到这种报错信息,多半是缺少jar包。

    使用此应用程序部署的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文件...

    jstl.jar、standard.jar

    JSP 标准标记库是一个实现 Web 应用程序中常见的通用功能的定制标记库集,这些功能包括迭代和条件判断、数据管理格式化、XML 操作以及数据库访问。jstl语言,el表达式必需的包

    el+jstl jar包 jstl.jar和standard.jar

    xml封装包,网络传送xml数据 ,这两个包主要是web服务器封装数据发送给移动端或是其他

    JAVA WEB 开发详解:XML+XSLT+SERVLET+JSP 深入剖析与实例应用.part3

    本书共分4部分,从xml、servlet、jsp和应用的角度向读者展示了java web开发中各种技术的应用,循序渐进地引导读者快速掌握java web开发。.  本书内容全面,涵盖了从事java web开发所应掌握的所有知识。在知识的讲解...

    jstl标签在jsp中使用问题

    在web项目中使用JSTL标签,JSTL 1.0 的声明是 &lt;%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %&gt; 所使用的web应用服务器resin与tomcat有所区别 resin\lib目录下存在jstl-1.2.jar、jta-101.jar包 而...

    JSP标签,采用web.xml引入标签库描述文件

    JSP标签、自定义标签,含有属性的JSP标签,学习标签的基本功。

    JSTL 入门 表达式语言.mht

    JSP 标准标记库(JSP Standard Tag Library,JSTL)是一个实现 Web 应用程序中常见的通用功能的定制标记库集,这些功能包括迭代和条件判断、数据管理格式化、XML 操作以及数据库访问。在 developerworks 上其新系列...

    JSTL使用及配置手册

    JSTL使用及配置手册,有关JSTL标签 ,JSTL与 web.xml 和Tomcat的配置

    使用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下没有,这是工具发布项目的问题,...

    下载jstl.jar和standard.jar

    关于The absolute uri: http://java.sun.com/jstl/core_rt cannot be resolved in either web.xml or the jar files deployed with this application解决! 将jstl.jar和standard.jar包导入工程后,运行页面依然...

    JSTL包和standrad包

    在web项目中使用JSTL标签,JSTL 1.0 的声明是 &lt;%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %&gt; 所使用的web应用服务器resin与tomcat有所区别 resin\lib目录下存在jstl-1.2.jar、jta-101.jar包 而...

    J2EE(Java EE)技术总结-J2EE学习精华教程-电子书

    .....Web_JSP_标签库_JSTL .....Web_JSP_EL表达式 .....Web_JSP+Servlet_作用域(上下文) .....Web_JSP+Servlet_性能调优 .....Web_Cookie和Session .....Web_过滤器 .....Web_MVC设计模式 .....JDBC .....JDBC_各种...

    jstl el taglib 完整jar包

     如果你使用Maven构建您的应用程序,添加以下依赖关系到pom.xml文件: &lt;groupId&gt;org.apache.taglibs &lt;artifactId&gt;taglibs-standard-spec &lt;version&gt;1.2.5 &lt;groupId&gt;org.apache.taglibs &lt;artifactId&gt;...

    JSTL Core标签库资料

    从JSP 1.1规范开始,JSP就支持在JSP中使用自定义标签了,自定义标签的广泛使用造成了程序员重复定义,这样就促成了JSTL(JavaServer Pages Standard Tag Library)的诞生。

    JSTL in Action

    and move to an example of organizing an entire site—a web portal—using JSTL. Finally, part 4 discusses how to configure JSTL, integrate Java code, and even write custom tags using JSTL’s API. The ...

Global site tag (gtag.js) - Google Analytics