org.apache.tapestry
Class RedirectException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--org.apache.tapestry.ApplicationRuntimeException
|
+--org.apache.tapestry.RedirectException
- All Implemented Interfaces:
- ILocatable, Serializable
- public class RedirectException
- extends ApplicationRuntimeException
Exception thrown to force a redirection to an arbitrary location.
This is used when, after processing a request (such as a form
submission or a link being clicked), it is desirous to go
to some arbitrary new location.
- Since:
- 1.0.6
- Version:
- $Id: RedirectException.java,v 1.2 2003/03/15 21:22:08 hlship Exp $
- Author:
- Howard Lewis Ship
- See Also:
- Serialized Form
RedirectException
public RedirectException(String redirectLocation)
RedirectException
public RedirectException(String message,
String redirectLocation)
- Parameters:
message
- A message describing why the redirection is taking place.location
- The location to redirect to, may be a relative path (relative
to the ServletContext
).- See Also:
HttpServletResponse#sendRedirect(String)
,
HttpServletResponse#encodeRedirectURL(String)
getRedirectLocation
public String getRedirectLocation()