Easy Redirects

This page demonstrates that Tapestry can interoperate with traditional web applications. A listener method may redirect to either an internal resource within the same web application, or to an external URL.

Examples:

The code for both these cases is very simple:

public void redirectInternal()
  throws RequestCycleException
{
	throw new RedirectException("redirect-target.html");
}

public void redirectExternal()
  throws RequestCycleException
{
	throw new RedirectException("http://tapestry.apache.org/");
}