public class

URLTag

extends WebWorkBodyTagSupport
implements ParamTag.Parametric
java.lang.Object
   ↳ javax.servlet.jsp.tagext.TagSupport
     ↳ javax.servlet.jsp.tagext.BodyTagSupport
       ↳ webwork.view.taglib.WebWorkBodyTagSupport
         ↳ webwork.view.taglib.URLTag

Class Overview

This tag is used to create a URL. You can use the "param" tag inside the body to provide additional request parameters.

See Also

Summary

Constants
String ALL
String GET
String NONE The includeParams attribute may have the value 'none', 'get' or 'all'.
[Expand]
Inherited Constants
From interface javax.servlet.jsp.tagext.BodyTag
From interface javax.servlet.jsp.tagext.IterationTag
From interface javax.servlet.jsp.tagext.Tag
[Expand]
Inherited Fields
From class webwork.view.taglib.WebWorkBodyTagSupport
From class javax.servlet.jsp.tagext.BodyTagSupport
From class javax.servlet.jsp.tagext.TagSupport
Public Constructors
URLTag()
Public Methods
void addParameter(String name, Object value)
int doEndTag()
int doStartTag()
void setIncludeContext(boolean includeContext)
@Deprecated void setPage(String aName)
This method is deprecated. use value instead
void setValue(String aName)
Protected Methods
String htmlEscape(String value)
Template method to allow overriding the HTML escaping of our output
String urlEncode(String value)
Template method to allow overriding of the URL encoding used.
[Expand]
Inherited Methods
From class webwork.view.taglib.WebWorkBodyTagSupport
From class javax.servlet.jsp.tagext.BodyTagSupport
From class javax.servlet.jsp.tagext.TagSupport
From class java.lang.Object
From interface javax.servlet.jsp.tagext.BodyTag
From interface javax.servlet.jsp.tagext.IterationTag
From interface javax.servlet.jsp.tagext.Tag
From interface webwork.view.taglib.ParamTag.Parametric

Constants

public static final String ALL

Constant Value: "all"

public static final String GET

Constant Value: "get"

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

Constant Value: "none"

Public Constructors

public URLTag ()

Public Methods

public void addParameter (String name, Object value)

public int doEndTag ()

Throws
JspException

public int doStartTag ()

Throws
JspException

public void setIncludeContext (boolean includeContext)

@Deprecated public void setPage (String aName)

This method is deprecated.
use value instead

public void setValue (String aName)

Protected Methods

protected String htmlEscape (String value)

Template method to allow overriding the HTML escaping of our output

Parameters
value the string to HTML escape
Returns
  • a HTML escaped value

protected String urlEncode (String value)

Template method to allow overriding of the URL encoding used.

Parameters
value the string to be URL encoded
Returns
  • a URL encoded string please