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
|
||||
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]);
|
||||
|
|
Loading…
Add table
Reference in a new issue