Fixed bug #65: redirect() doesn't work in onRequest() function.

http://helma.org/bugs/show_bug.cgi?id=65
This commit is contained in:
hns 2002-03-19 14:10:06 +00:00
parent 63eb24bae6
commit b76447298b

View file

@ -350,9 +350,10 @@ public class RequestEvaluator implements Runnable {
// calling the actual action // calling the actual action
try { try {
current.doIndirectCall (evaluator, current, "onRequest", new ESValue[0]); current.doIndirectCall (evaluator, current, "onRequest", new ESValue[0]);
} catch (RedirectException redir) {
throw redir;
} catch (Exception ignore) { } catch (Exception ignore) {
// System.err.println ("error in onRequest(): "+ignore); // function is not defined or caused an exception, ignore
// onRequest not defined
} }
// do the actual action invocation // do the actual action invocation
current.doIndirectCall (evaluator, current, action, new ESValue[0]); current.doIndirectCall (evaluator, current, action, new ESValue[0]);