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]);