webwork.view.taglib
Class URLTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
webwork.view.taglib.WebWorkBodyTagSupport
webwork.view.taglib.URLTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, ParamTag.Parametric, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class URLTag
- extends WebWorkBodyTagSupport
- implements ParamTag.Parametric
This tag is used to create a URL.
You can use the "param" tag inside the body to provide
additional request parameters.
- Version:
- $Revision: 1.22 $
- Author:
- Rickard Öberg (rickard@dreambean.com)
- See Also:
ParamTag
,
Serialized Form
Field Summary |
static java.lang.String |
ALL
|
static java.lang.String |
GET
|
protected java.lang.String |
includeParamsAttr
|
static java.lang.String |
NONE
The includeParams attribute may have the value 'none', 'get' or 'all'. |
protected java.lang.String |
page
|
protected java.util.Map |
params
|
protected java.lang.String |
value
|
protected java.lang.String |
valueAttr
|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent |
page
protected java.lang.String page
valueAttr
protected java.lang.String valueAttr
value
protected java.lang.String value
includeParamsAttr
protected java.lang.String includeParamsAttr
params
protected java.util.Map params
NONE
public static final java.lang.String NONE
- The includeParams attribute may have the value 'none', 'get' or 'all'.
It is used when the url tag is used without a value or page attribute.
Its value is looked up on the ValueStack
If no includeParams is specified then 'get' is used.
none - include no parameters in the URL
get - include only GET parameters in the URL (default)
all - include both GET and POST parameters in the URL
- See Also:
- Constant Field Values
GET
public static final java.lang.String GET
- See Also:
- Constant Field Values
ALL
public static final java.lang.String ALL
- See Also:
- Constant Field Values
URLTag
public URLTag()
setPage
public void setPage(java.lang.String aName)
- Deprecated. use value instead
setValue
public void setValue(java.lang.String aName)
setIncludeParams
public void setIncludeParams(java.lang.String aName)
addParameter
public void addParameter(java.lang.String name,
java.lang.Object value)
- Specified by:
addParameter
in interface ParamTag.Parametric
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Throws:
javax.servlet.jsp.JspException
Copyright © 2001-2003 WebWork All Rights Reserved.