listtag.java

来自「GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。」· Java 代码 · 共 48 行

JAVA
48
字号
/* * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a> * @author <a href="mailto:oliver.wehrens@aei.mpg.de">Oliver Wehrens</a> * @version $Id: ListTag.java 4666 2006-03-27 17:47:56Z novotny $ */package org.gridsphere.provider.portletui.tags;import org.gridsphere.provider.portletui.beans.ListBean;import javax.servlet.jsp.JspException;import javax.servlet.jsp.JspWriter;/** * A <code>ListBoxTag</code> represents a list box element */public class ListTag extends BaseComponentTag {    protected ListBean listBean = null;    public void setListBean(ListBean listBean) {        this.listBean = listBean;    }    public ListBean getListBean() {        return listBean;    }    public int doStartTag() throws JspException {        if (!beanId.equals("")) {            listBean = (ListBean) getTagBean();        }        return SKIP_BODY;    }    public int doEndTag() throws JspException {        if (listBean != null) {            try {                JspWriter out = pageContext.getOut();                out.print(listBean.toEndString());            } catch (Exception e) {                throw new JspException(e.getMessage());            }        }        return EVAL_PAGE;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?