| |||||||
FRAMES NO FRAMES |
Render an HTTP Redirect
Performs an HttpServletResponse.sendRedirect()
call to the hyperlink specified by the attributes to this tag. URL rewriting will be applied automatically, to maintain session state in the absence of cookies.
The base URL for this redirect is calculated based on the href
Normally, the redirect you specify will be left unchanged (other than URL rewriting if necessary). However, there are two ways you can append one or more dynamically defined query parameters to the hyperlink -- specify a single parameter with the paramId
attribute (and its associated attributes to select the value), or specify the name
attribute to select a SourceBean list
that contains one or more parameter ids and corresponding values.
To specify a single parameter, use the paramId
attribute to define the name of the request parameter to be submitted. To specify the corresponding value, specify the paramName
attribute - The named property on service context
(optionally scoped by the value of the paramScope
attribute) must identify a value that can be converted to a String.
If you prefer to specify a SourceBean list
that contains all of the request parameters to be added to the hyperlink, specify only the name
attribute - The named service context
data (optionally scoped by the value of the scope
attribute) must identify a SourceBean list
containing the parameters.
As the SourceBean list
is processed, every element is assumed to be formed by the name
and value
attributes; these respective values are used as query parameters to be appended to the hyperlink. The value associated with each SourceBean must be either a String or an object whose toString() method will be called.
Additionally, you can request that the current transaction control token, if any, be included in the generated hyperlink by setting the transaction
attribute to true
. You can also request that the href is calculated based on the alias
and aliasRelated
parameters.
Tag Information | |
Tag Class | it.eng.spago.taglib.logic.RedirectTag |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes | ||||
Name | Required | Request-time | Type | Description |
alias | false | true | java.lang.String | Name of the alias to be used instead of the href attribute. |
aliasRelated | false | true | java.lang.String | String to be appended to the alias attribute if present. |
anchor | false | true | java.lang.String | Optional anchor tag ("#xxx") to be added to the generated hyperlink. Specify this value without any "#" character. |
href | false | true | java.lang.String | The URL to which this redirect will transfer control. This URL may be dynamically modified by the inclusion of query parameters, as described in the tag description. You must specify exactly one of the |
name | false | true | java.lang.String | The name of a JSP bean that contains a |
paramId | false | true | java.lang.String | The name of the request parameter that will be dynamically added to the generated hyperlink. The corresponding value is defined by the |
paramName | false | true | java.lang.String | The name of a JSP bean that is a String containing the value for the request parameter named by |
paramScope | false | true | java.lang.String | The scope within which to search for the bean specified by the |
scope | false | true | java.lang.String | The scope within which to search for the bean specified by the |
transaction | false | true | boolean | Set to |
useLocalEncoding | false | true | boolean | If set to |
Variables | No Variables Defined. |
| |||||||
FRAMES NO FRAMES |