onRequest and res.stop();
"Andreas Schuh" <[email protected]>
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
hi list,
i try to stop executing the called action after onRequest() function.
code:
function onRequest() {
if(!hasActionAccess('view', this)) {
http403(); //render 403 page
res.stop();
}
}
but it seems there is no res object available in onRequest
TypeError: undefined is not a function.
(/srv/helma/apps/mazda_austria_guzza/code/HopObject/class.js; line 43)
is there a way to cancel execute the called action in onRequest()?