Hi,

How can I set a redirect when an exception has been thrown?

I tried the following:

    @Match("RequestExceptionHandler")
public static RequestExceptionHandler decorateRequestExceptionHandler(final Response response) {
        return new RequestExceptionHandler() {

            @Override
public void handleRequestException(Throwable exception) throws IOException {
                response.sendRedirect("http://www.google.be";);
            }

        };
    }

But this seems to only work for non-XHR requests? Or did I forget something here?

Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to