- 浏览: 125503 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (106)
- java并发 (8)
- Oracle (13)
- java基础 (11)
- Hibernate (3)
- j2ee (6)
- Spring (2)
- Linux下 (4)
- 工具 (2)
- Tomcat (2)
- english (2)
- html (3)
- 数据结构与算法 (1)
- MySQL (2)
- database (4)
- javascript && Dom (4)
- C语言&jni (2)
- protocols (1)
- 记事 (11)
- 操作系统原理(linux) (0)
- java7 (1)
- xml&xsl (3)
- mybatis (1)
- webService之cxf (0)
- web service (2)
- Android (3)
- jquery (2)
- 云计算 (0)
- NoSQL (3)
- hadoop教程 (0)
- C++ (3)
- java nio (0)
- 设计模式 (0)
最新评论
-
yuxiaojie_2013:
html5 -
BBjava:
spiniper 写道一般利用反射获去获取父类并不是一件常用的 ...
利用反射获取父类,接口信息 -
spiniper:
一般利用反射获去获取父类并不是一件常用的功能判断一个对象是否属 ...
利用反射获取父类,接口信息 -
BBjava:
_荆棘鸟_ 写道hi,你这篇blog是最经写的吗?我怎么感觉最 ...
使用eclipse进行c++的开发 -
_荆棘鸟_:
hi,你这篇blog是最经写的吗?我怎么感觉最新版的Mingw ...
使用eclipse进行c++的开发
同事用MyEclipse创建的工程,MyEclipse很“智能的”帮忙添加了,jstl的支持。
在打包war包的里候,发现在服务器上突然不支持jstl了,打包后,MyEclipse没有将jstl相关的包添加进去。就是上面所述的造成的。
一气之下,决定不使用MyEclipse的“智能”,“机器再智能还不如人类”。
在http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/下载最新的版本。解压,将解压的lib目录下的jar包添加到你工程的lib目录下。
需要说明的是:我的工程用的是2.4的版本。
标签描述语句如下:
所有的标签描述在README里面有,你可以直接copy.下面是README FILE 的内容了:
---------------------------------------------------------------------------
Standard Tag Library 1.1 -- BINARY DISTRIBUTION
---------------------------------------------------------------------------
Thanks for downloading this release of the Standard tag library,
an implementation of the JavaServer Pages(tm)(JSP)
Standard Tag Library (JSTL).
JSTL is an effort of the Java Community Process (JCP) and
comes out of the JSR-052 expert group. For more information on JSTL,
please go to http://java.sun.com/products/jstl.
We hope you find the tags, documents, and examples in this binary
distribution of interest.
---------------------------------------------------------------------------
LIBRARY DEPENDENCIES
This version of the Standard Tag Library has the following runtime
dependencies:
1. Dependencies provided by the JSP 2.0 container:
- Servlet 2.4
- JSP 2.0
2. Dependencies provided in newer J2SEs (1.4.2 and higher)
- JAXP 1.2
- Xalan 2.5
- JDBC Standard Extension 2.0
Since all of the dependencies in (2) are included in Sun's
distribution of J2SE 1.4.2 (and higher), this is therefore the J2SE
version of choice to use the standard tag library.
If the java platform under which you run your JSP container does not
provide these dependencies, they must be made available either globally
to all web-applications by your container, or individually within the
WEB-INF/lib directory of your web-application.
For convenience, these jar files have been included in directory
lib/old-dependencies of this distribution (assuming the build process
of this distribution included them). If you would like to download
these jar files yourself, instructions on where you can get them are
included below.
---
JAXP 1.2
The JAXP 1.2 jar files can be obtained in the Java Web Services
Developer Pack (JWSDP) available at
http://java.sun.com/products/jwsdp.
- jaxp-api.jar
- dom.jar
- sax.jar
- xercesImpl.jar
---
Xalan 2.5
The Xalan jar file can be obtained in the Java Web Services
Developer Pack (JWSDP) available at
http://java.sun.com/products/jwsdp, as well as from
Apache at http://xml.apache.org/xalan-j.
- xalan.jar
Please note that if you use Sun's distribution of J2SE 1.4.1, you must
supersede the version of xalan.jar provided by the J2SE with version
2.5 or higher of Xalan. This newer version of xalan.jar must then be
made available through the endorsed dirs mechanism.
---
JDBC Standard Extension 2.0
The JDBC 2.0 Optional Package can be obtained from:
http://java.sun.com/products/jdbc/download.html
- jdbc2_0-stdext.jar
---------------------------------------------------------------------------
WAR Files
The following two files are standalone web applications (WARs) that are
designed to work out of the box in order to help you learn JSTL:
standard-doc.war Documentation
standard-examples.war Simple examples of JSTL tags
Note that 'standard-examples.war' will work out-of-the-box as long
as the java platform under which you run your JSP container provides
all the dependencies mentioned above (see Library Dependencies).
This is the case if using Sun's distribution of J2SE 1.4.2 (and higher).
If not all dependencies are provided by your runtime, then they must
be made available to the web application as explained in section
"Library Dependencies".
---------------------------------------------------------------------------
USING THE STANDARD TAG LIBRARY
To use this distribution with your own web applications, simply copy the JAR
files in the 'lib' directory (jstl.jar and standard.jar) to your application's
WEB-INF/lib directory (add the other dependencies as well if your runtime
does not already provide them). Then, import JSTL into your pages with the
following directives:
CORE LIBRARY
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
XML LIBRARY
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
FMT LIBRARY
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
SQL LIBRARY
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
FUNCTIONS LIBRARY
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
---------------------------------------------------------------------------
COMPATIBILITY
The 1.1 version of the Standard Taglib has been tested under Tomcat 5.0.3
and should work in any compliant JSP 2.0 container.
---------------------------------------------------------------------------
COMMENTS AND QUESTIONS
Please join the taglibs-user@jakarta.apache.org mailing list if you have
general usage questions about JSTL.
Comments about the JSTL specification itself should be sent to
jsr-52-comments@jcp.org.
Enjoy!
在打包war包的里候,发现在服务器上突然不支持jstl了,打包后,MyEclipse没有将jstl相关的包添加进去。就是上面所述的造成的。
一气之下,决定不使用MyEclipse的“智能”,“机器再智能还不如人类”。
在http://archive.apache.org/dist/jakarta/taglibs/standard/binaries/下载最新的版本。解压,将解压的lib目录下的jar包添加到你工程的lib目录下。
需要说明的是:我的工程用的是2.4的版本。
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" 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_4.xsd"> </web-app>
标签描述语句如下:
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
所有的标签描述在README里面有,你可以直接copy.下面是README FILE 的内容了:
引用
---------------------------------------------------------------------------
Standard Tag Library 1.1 -- BINARY DISTRIBUTION
---------------------------------------------------------------------------
Thanks for downloading this release of the Standard tag library,
an implementation of the JavaServer Pages(tm)(JSP)
Standard Tag Library (JSTL).
JSTL is an effort of the Java Community Process (JCP) and
comes out of the JSR-052 expert group. For more information on JSTL,
please go to http://java.sun.com/products/jstl.
We hope you find the tags, documents, and examples in this binary
distribution of interest.
---------------------------------------------------------------------------
LIBRARY DEPENDENCIES
This version of the Standard Tag Library has the following runtime
dependencies:
1. Dependencies provided by the JSP 2.0 container:
- Servlet 2.4
- JSP 2.0
2. Dependencies provided in newer J2SEs (1.4.2 and higher)
- JAXP 1.2
- Xalan 2.5
- JDBC Standard Extension 2.0
Since all of the dependencies in (2) are included in Sun's
distribution of J2SE 1.4.2 (and higher), this is therefore the J2SE
version of choice to use the standard tag library.
If the java platform under which you run your JSP container does not
provide these dependencies, they must be made available either globally
to all web-applications by your container, or individually within the
WEB-INF/lib directory of your web-application.
For convenience, these jar files have been included in directory
lib/old-dependencies of this distribution (assuming the build process
of this distribution included them). If you would like to download
these jar files yourself, instructions on where you can get them are
included below.
---
JAXP 1.2
The JAXP 1.2 jar files can be obtained in the Java Web Services
Developer Pack (JWSDP) available at
http://java.sun.com/products/jwsdp.
- jaxp-api.jar
- dom.jar
- sax.jar
- xercesImpl.jar
---
Xalan 2.5
The Xalan jar file can be obtained in the Java Web Services
Developer Pack (JWSDP) available at
http://java.sun.com/products/jwsdp, as well as from
Apache at http://xml.apache.org/xalan-j.
- xalan.jar
Please note that if you use Sun's distribution of J2SE 1.4.1, you must
supersede the version of xalan.jar provided by the J2SE with version
2.5 or higher of Xalan. This newer version of xalan.jar must then be
made available through the endorsed dirs mechanism.
---
JDBC Standard Extension 2.0
The JDBC 2.0 Optional Package can be obtained from:
http://java.sun.com/products/jdbc/download.html
- jdbc2_0-stdext.jar
---------------------------------------------------------------------------
WAR Files
The following two files are standalone web applications (WARs) that are
designed to work out of the box in order to help you learn JSTL:
standard-doc.war Documentation
standard-examples.war Simple examples of JSTL tags
Note that 'standard-examples.war' will work out-of-the-box as long
as the java platform under which you run your JSP container provides
all the dependencies mentioned above (see Library Dependencies).
This is the case if using Sun's distribution of J2SE 1.4.2 (and higher).
If not all dependencies are provided by your runtime, then they must
be made available to the web application as explained in section
"Library Dependencies".
---------------------------------------------------------------------------
USING THE STANDARD TAG LIBRARY
To use this distribution with your own web applications, simply copy the JAR
files in the 'lib' directory (jstl.jar and standard.jar) to your application's
WEB-INF/lib directory (add the other dependencies as well if your runtime
does not already provide them). Then, import JSTL into your pages with the
following directives:
CORE LIBRARY
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
XML LIBRARY
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
FMT LIBRARY
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
SQL LIBRARY
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
FUNCTIONS LIBRARY
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
---------------------------------------------------------------------------
COMPATIBILITY
The 1.1 version of the Standard Taglib has been tested under Tomcat 5.0.3
and should work in any compliant JSP 2.0 container.
---------------------------------------------------------------------------
COMMENTS AND QUESTIONS
Please join the taglibs-user@jakarta.apache.org mailing list if you have
general usage questions about JSTL.
Comments about the JSTL specification itself should be sent to
jsr-52-comments@jcp.org.
Enjoy!
- jakarta-taglibs-standard-1.1.2.zip (932.6 KB)
- 下载次数: 16
发表评论
-
构思2
2014-03-30 04:12 0<?xml version="1.0" ... -
word2007 宏的使用,批量文件修改
2013-03-23 18:38 0写这个宏纯粹是为了满足女朋友偷懒, 先把宏写下:引用 Sub ... -
window操作系统的组策略
2012-11-14 11:29 0在 windows xp操作系统下运行 gpedit.msc ... -
读tomcat6源码记录与个人的想法
2012-09-28 13:39 01.tomcat6启动 (1) org.apache.cata ... -
设计 REST 风格的 MVC 框架(转)
2012-06-18 13:45 0这边只贴url:http://www.ibm.com/deve ... -
免费ui图标大全
2012-06-15 09:59 984免费ui图标大全http://www.gbin1.com/to ... -
构思1
2012-03-27 11:54 816这是无聊时随便乱想的,还不知道能用来做什么! &l ... -
srping_quartz整合
2012-03-26 16:57 828quart与spring整合,老外的: http://tech ... -
Quartz定时器
2012-03-26 16:37 2588本例子取自quartz官方。 /* * Copyrigh ... -
push相关文章
2011-09-27 01:49 921三个链接来自:http://www.iteye.com/pro ... -
一些key words(备查)
2011-09-25 14:37 7871.BigDecimal 这是java.math里的一个类,用 ... -
60个新鲜的高质量免费PSD文件资源之三:免费网站PSD模板
2011-09-18 22:45 845http://www.gbin1.com/tools/desi ... -
html5
2011-09-06 17:31 2779中文入口:http://www.w3school.com.cn ... -
想玩玩android
2011-08-29 13:42 900http://blog.csdn.net/yiyaaixuex ... -
三星手机翻新机的识别
2011-08-19 00:07 3078三星I9000翻新机辨别 http://www.promote ... -
近期得好好研究的东西
2011-07-05 17:29 01.报表:birt,ireport。jsper reprot ...
相关推荐
**JSTL(JavaServer Pages Standard Tag Library)标签库**是Java Web开发中常用的一组标准标签,它为JSP页面提供了...通过阅读《JSTL标签使用手册-中文版》这份资料,你将能够深入理解JSTL并灵活运用到实际项目中。
本文档将详细介绍JSTL标签的使用方法,帮助开发者更好地理解和应用。 JSTL主要分为五个核心部分: 1. **Core(核心标签库)**:提供基本的控制结构,如条件语句、循环、跳转等。 - `<c:if>`:用于执行条件判断。 ...
JSTL标签使用,很好的哦
JSTL,全称JavaServer Pages Standard Tag Library,是一个用于JSP页面的开源标签库,由Apache Jakarta项目维护。它旨在提高JSP开发的效率,通过提供一系列预定义的标签来简化常见任务,如控制流、迭代、XML处理、...
**JSTL标签的使用**: 1. **** - 输出变量或表达式的值,防止XSS攻击。 2. **** - 设置变量,可以在JSP页面内部或者作用域内使用。 3. **** - 删除指定作用域内的变量。 4. **** 和 **** - 条件判断,类似于Java的...
在本篇中,我们将深入探讨JSTL标签的使用以及所需的jar包。 首先,JSTL是一个标准的标签库,它提供了多种用于处理常见JSP任务的标签,比如控制流程、数据操作、国际化和XML处理等。这些标签可以帮助开发者将业务...
### JSTL标签库概述及核心标签使用详解 JSTL(JavaServer Pages Standard Tag Library)是一组标准标签库,用于简化JSP页面的开发工作。JSTL提供了丰富的标签来处理各种常见的Web应用程序需求,如条件判断、循环、...
JAVAEE 实验报告 EL 表达式和 JSTL 标签库的使用 EL 表达式(Expression Language)是一种在 JSP 页面中使用的脚本语言,用于简化 JSP 页面的开发。EL 表达式可以访问 JSP 页面中的变量、对象和集合,进行逻辑操作...
- 提高代码的可读性和可维护性,因为JSTL标签更接近自然语言。 - 分离了业务逻辑和表现层,使得开发者可以专注于页面展示,而不是复杂的JSP脚本。 - 支持国际化和本地化,方便多语言网站的开发。 - 提供了安全的输出...
这只是JSTL标签库的一部分功能。JSTL还包括其他标签,如`<c:forEach>`用于迭代集合,`<c:forEach>`和`<fmt:formatDate>`用于日期和时间格式化,以及`<c:remove>`用于删除变量等。学习和掌握JSTL能显著提高JSP开发的...
**JSTL标签库及其使用方法** JavaServer Pages Standard Tag Library(JSTL)是Java社区为简化JSP页面开发而推出的一个标准标签库。它提供了丰富的功能,如迭代、条件判断、XML处理、国际化等,使代码更加简洁、易...
`使用说明.txt`文件通常会详细解释如何在项目中引入和使用JSTL,包括配置步骤、标签的用法示例以及常见问题的解决方法。建议仔细阅读该文件以更好地理解和应用JSTL。 总之,JSTL通过提供一系列预定义的标签,使JSP...
- **跨项目复用**:JSTL标签可以在不同项目间重复使用,提升开发效率。 在"jstl库-tomcat10"这个压缩包中,可能包含了JSTL库的jar文件,以及一些示例或教程,帮助开发者更好地理解和使用JSTL与Tomcat 10的集成。...
这样,你就可以使用如`<c:forEach>`、`<fmt:formatDate>`等JSTL标签了。 **JSTL常见标签及其用法**: - `c:set`:设置变量,如`张三"/>`。 - `c:out`:安全地输出变量,防止XSS攻击,如`${name}"/>`。 - `c:if`和`...
3. 使用JSTL标签:现在可以在JSP页面中使用JSTL标签,如`<c:forEach>`进行迭代,`<c:if>`进行条件判断,`<fmt:formatDate>`格式化日期等。 总之,JSTL是提升JSP页面编写效率的重要工具,而依赖注入则是现代Java应用...
以下是关于JSTL标签库所需导入的JAR包及其功能的详细解释: 1. **jstl.jar**:这是核心JSTL库,包含了大部分常用的标签,如 `<c:if>`, `<c:forEach>`, `<fmt:formatDate>` 等。这些标签提供了条件判断、循环、格式...
完成上述步骤后,你的Web应用就可以使用JSTL标签库了。 ### JSTL主要标签 JSTL核心库(`core`)提供了许多常用的标签,例如: - `<c:forEach>`:用于循环遍历集合或数组。 - `<c:if>`和`<c:choose>`:条件判断标签...
4. **在JSP页面中使用自定义标签**:完成以上步骤后,就可以在JSP页面中像使用标准JSTL标签一样使用自定义标签了。 例如,假设我们有一个名为`myTag`的自定义标签,其处理类为`com.example.MyTag`,在TLD文件中定义...
3. 开始使用JSTL标签,例如: ```jsp ${list}" var="item"> ${item.name} ``` JSTL的优势在于它将业务逻辑和显示逻辑分离,使得JSP页面更专注于展示,提高了代码的可读性和可维护性。同时,由于其标签的语义...