资源简介
taglibs-standard-1.2.1-source-release,jsp开发jstl标准标签库
代码片段和文件信息
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License Version 2.0
* (the “License“); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.taglibs.standard.tag.compat.core;
import java.util.Collections;
import javax.el.Valueexpression;
import javax.servlet.jsp.JspException;
import org.apache.taglibs.standard.tag.common.core.ForEachSupport;
import org.apache.taglibs.standard.util.expressionUtil;
/**
* JSTL 1.0 compatible implementation of <foreach> that uses JSP EL support.
*/
public class ForEachTag extends ForEachSupport {
private Valueexpression beginexpression;
private Valueexpression endexpression;
private Valueexpression stepexpression;
private Valueexpression itemsexpression;
public ForEachTag() {
}
@Override
public void release() {
beginexpression = null;
endexpression = null;
stepexpression = null;
itemsexpression = null;
super.release();
}
@Override
public int doStartTag() throws JspException {
if (beginSpecified) {
begin = (Integer) beginexpression.getValue(pageContext.getELContext());
validateBegin();
}
if (endSpecified) {
end = (Integer) endexpression.getValue(pageContext.getELContext());
validateEnd();
}
if (stepSpecified) {
step = (Integer) stepexpression.getValue(pageContext.getELContext());
validateStep();
}
if (itemsexpression != null) {
rawItems = itemsexpression.getValue(pageContext.getELContext());
if (rawItems == null) {
rawItems = Collections.emptyList();
}
}
return super.doStartTag();
}
public void setBegin(String begin) {
beginexpression = expressionUtil.createValueexpression(pageContext begin Integer.TYPE);
beginSpecified = true;
}
public void setEnd(String end) {
endexpression = expressionUtil.createValueexpression(pageContext end Integer.TYPE);
endSpecified = true;
}
public void setStep(String step) {
stepexpression = expressionUtil.createValueexpression(pageContext step Integer.TYPE);
stepSpecified = true;
}
public void setItems(String items) {
itemsexpression =
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\build-tools\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\build-tools\src\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\build-tools\src\main\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\build-tools\src\main\resources\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\build-tools\src\main\resources\taglibs\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\main\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\main\java\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\main\java\org\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\main\java\org\apache\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\main\java\org\apache\taglibs\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\main\java\org\apache\taglibs\standard\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\main\java\org\apache\taglibs\standard\tag\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\main\java\org\apache\taglibs\standard\tag\compat\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\compat\src\main\java\org\apache\taglibs\standard\tag\compat\core\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\apache\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\apache\taglibs\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\apache\taglibs\standard\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\apache\taglibs\standard\functions\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\apache\taglibs\standard\resources\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\apache\taglibs\standard\tag\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\apache\taglibs\standard\tag\common\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\apache\taglibs\standard\tag\common\core\
目录 0 2013-11-13 18:47 taglibs-standard-1.2.1\impl\src\main\java\org\apache\taglibs\standard\tag\common\fmt\
............此处省略457个文件信息
相关资源
- jspsmartupload.zip265735
- 简单博客系统
- JSP课程设计个人信息系统
- JSP、JavaBean和Servlet完成一个简单的留
- jsp+sql实验室管理系统
- jsp servlet javabean实现的简单网上购物车
- 通过JSP实现 图片上传
- jsp中使用echarts
- JSP校园二手市场交易平台论文及毕业
- 粒子群算法PSO解决柔性作业车间调度
- 购物系统设计与实现外文资料
- 基于 JSP/Servlet 的头像设置功能实现
- JSP+Application聊天室
- JSP+Servlet调查问卷
- jsp界面弄的简单的抽奖项目
- 简单的jsp新闻发布网站
- jsp+web+简单学生管理系统+mysql
- JSP版_成绩录入查询系统
- JSP+access网上投票系统
- 纯Jsp+oracle写的一个Student 增删改查服
- jsp+Mysql做的留言板 界面豪华 大方 美
- 编写一个JSP程序,计算整数的阶乘,
- JSP在线人数统计
- 图片上传完整实现(jspjavajs表设计)
- jsp and servlet用户登录注册界面
- 天气预报JSP代码
- 简易网登录注册功能实现JSP+Servlet
- 个人博客博客案例(jsp)
- JSP技术将EXCEL导入到MYSQL中
- jsp+oracle网上求职系统源码
评论
共有 条评论