From b76447298bb6b3911368fb7fdc0e96039d1f9536 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 19 Mar 2002 14:10:06 +0000 Subject: [PATCH] Fixed bug #65: redirect() doesn't work in onRequest() function. http://helma.org/bugs/show_bug.cgi?id=65 --- src/helma/framework/core/RequestEvaluator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 2ce9696d..a668e21a 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -350,9 +350,10 @@ public class RequestEvaluator implements Runnable { // calling the actual action try { current.doIndirectCall (evaluator, current, "onRequest", new ESValue[0]); + } catch (RedirectException redir) { + throw redir; } catch (Exception ignore) { - // System.err.println ("error in onRequest(): "+ignore); - // onRequest not defined + // function is not defined or caused an exception, ignore } // do the actual action invocation current.doIndirectCall (evaluator, current, action, new ESValue[0]);