📄 listtag.java
字号:
/* * @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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -