com.opensymphony.webwork.views.jsp
Class URLTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport
              extended bycom.opensymphony.webwork.views.jsp.ParametereizedBodyTagSupport
                  extended bycom.opensymphony.webwork.views.jsp.URLTag
All Implemented Interfaces:
BodyTag, IterationTag, ParamTag.Parametric, Serializable, Tag

public class URLTag
extends ParametereizedBodyTagSupport

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.21 $
Author:
Rickard ?berg (rickard@dreambean.com)
See Also:
ParamTag, Serialized Form

Field Summary
static String ALL
           
protected  boolean encode
           
static String GET
           
protected  boolean includeContext
           
protected  String includeParamsAttr
           
static String NONE
          The includeParams attribute may have the value 'none', 'get' or 'all'.
protected  String schemeAttr
           
protected  String value
           
protected  String valueAttr
           
 
Fields inherited from class com.opensymphony.webwork.views.jsp.ParametereizedBodyTagSupport
log
 
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
 
Constructor Summary
URLTag()
           
 
Method Summary
 int doEndTag()
           
 int doStartTag()
           
 void setEncode(boolean encode)
           
 void setIncludeContext(boolean includeContext)
           
 void setIncludeParams(String aName)
           
 void setScheme(String aScheme)
           
 void setValue(String aName)
           
 
Methods inherited from class com.opensymphony.webwork.views.jsp.ParametereizedBodyTagSupport
addParameter, getParameters
 
Methods inherited from class com.opensymphony.webwork.views.jsp.WebWorkBodyTagSupport
findString, findValue, findValue, getStack, toString
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, 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, setPageContext, setParent
 

Field Detail

NONE

public static final 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 String GET
See Also:
Constant Field Values

ALL

public static final String ALL
See Also:
Constant Field Values

includeParamsAttr

protected String includeParamsAttr

schemeAttr

protected String schemeAttr

value

protected String value

valueAttr

protected String valueAttr

encode

protected boolean encode

includeContext

protected boolean includeContext
Constructor Detail

URLTag

public URLTag()
Method Detail

setEncode

public void setEncode(boolean encode)

setIncludeContext

public void setIncludeContext(boolean includeContext)

setIncludeParams

public void setIncludeParams(String aName)

setScheme

public void setScheme(String aScheme)

setValue

public void setValue(String aName)

doEndTag

public int doEndTag()
             throws JspException
Throws:
JspException

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

WebWork Project Page