org.apache.struts.taglib.html
Class ParamTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.struts.taglib.html.ParamTag
- All Implemented Interfaces:
- Serializable, BodyTag, IterationTag, Tag
- Direct Known Subclasses:
- ELParamTag
public class ParamTag
- extends BodyTagSupport
Adds a new request parameter to its parent LinkTag
.
- Since:
- Struts 1.3.6
- Version:
- $Rev: 482912 $ $Date: 2006-12-05 23:48:32 -0600 (Tue, 05 Dec 2006) $
- See Also:
- Serialized Form
Field Summary |
protected static MessageResources |
messages
The message resources for this package. |
protected String |
name
The name of the query parameter. |
protected String |
value
The value of the query parameter or body content of this tag (if any). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
messages
protected static MessageResources messages
- The message resources for this package.
name
protected String name
- The name of the query parameter.
value
protected String value
- The value of the query parameter or body content of this tag (if any).
ParamTag
public ParamTag()
getName
public String getName()
setName
public void setName(String name)
getValue
public String getValue()
setValue
public void setValue(String value)
doStartTag
public int doStartTag()
throws JspException
- Specified by:
doStartTag
in interface Tag
- Overrides:
doStartTag
in class BodyTagSupport
- Throws:
JspException
- if a JSP exception has occurred
doAfterBody
public int doAfterBody()
throws JspException
- Save the associated from the body content.
- Specified by:
doAfterBody
in interface IterationTag
- Overrides:
doAfterBody
in class BodyTagSupport
- Throws:
JspException
- if a JSP exception has occurred
doEndTag
public int doEndTag()
throws JspException
- Render the end of the hyperlink.
- Specified by:
doEndTag
in interface Tag
- Overrides:
doEndTag
in class BodyTagSupport
- Throws:
JspException
- if a JSP exception has occurred
release
public void release()
- Release any acquired resources.
- Specified by:
release
in interface Tag
- Overrides:
release
in class BodyTagSupport
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.