A Pipeline can both forward requests internally (to another pipeline) or send explicit redirects back to the client.
The redirect-to
element must have one of these 2 attributes:
resource
– the resource to forward touri
– the URI to redirect to.
With the resource attribute set, pipeline processing continues with the named resource. In recent releases (2.1.1 and later - I haven't looked at earlier versions), this is deprecated in favour of call
.
<map:call resource="something"/>
With a uri
attribute, a HTTP redirect response is send to the client. The pipeline processing ends. In this case, three Boolean parameters may be set. They all default to false.
global
– ???permanent
– settrue
to make the HTTP redirect permanentsession
– indicates whether the session should be maintained during the redirect
<map:redirect-to uri="http://google.com/"/>