⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 paramtag.java

📁 GridSphere 门户 提供一个基于 portlet 的高级开放源代码门户。GridSphere 是在欧盟提供基金的 GridLab 项目下开发的
💻 JAVA
字号:
/* * @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a> * @version $Id: ActionParamTag.java 4666 2006-03-27 17:47:56Z novotny $ */package org.gridsphere.provider.portletui.tags;import org.gridsphere.provider.portletui.beans.ParamBean;import javax.servlet.jsp.JspException;import javax.servlet.jsp.JspTagException;import javax.servlet.jsp.tagext.Tag;import javax.servlet.jsp.tagext.TagSupport;/** * The <code>ParamTag</code> is used to specify action paramters (name value pairs) inside of an * <code>ActionLinkTag</code>, <code>RenderLinkTag</code> or an <code>ActionSubmitTag</code>, <code>RenderSubmitTag</code> */public class ParamTag extends TagSupport {    protected String name = "";    protected String value = "";    protected ParamBean paramBean = null;    protected String beanId = "";    /**     * Returns the bean identifier     *     * @return the bean identifier     */    public String getBeanId() {        return beanId;    }    /**     * Sets the bean identifier     *     * @param beanId the bean identifier     */    public void setBeanId(String beanId) {        this.beanId = beanId;    }    /**     * Sets the action parameter name     *     * @param name the action parameter name     */    public void setName(String name) {        this.name = name;    }    /**     * Returns the action paramter name     *     * @return the action parameter name     */    public String getName() {        return name;    }    /**     * Sets the action parameter value     *     * @param value the action paramter value     */    public void setValue(String value) {        this.value = value;    }    /**     * Returns the action parameter value     *     * @return the action parameter value     */    public String getValue() {        return value;    }    /**     * Sets the action parameter bean     *     * @param paramBean the action parameter bean     */    public void setParamBean(ParamBean paramBean) {        this.paramBean = paramBean;    }    /**     * Returns the action parameter bean     *     * @return the action parameter bean     */    public ParamBean getParamBean() {        return paramBean;    }    public int doStartTag() throws JspException {        Tag tag = getParent();        if (tag instanceof ActionTag) {            ActionTag actionTag = (ActionTag) tag;            paramBean = new ParamBean(name, value);            actionTag.addParamBean(paramBean);        }        return SKIP_BODY;    }    public int doEndTag() throws JspTagException {        return EVAL_PAGE;    }}

⌨️ 快捷键说明

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