Fixed bug #65: redirect() doesn't work in onRequest() function.
http://helma.org/bugs/show_bug.cgi?id=65
This commit is contained in:
parent
63eb24bae6
commit
b76447298b
1 changed files with 3 additions and 2 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue