[Helma-user] onRequest and res.stop();

Andreas Schuh andreas.schuh at itac.at
Thu Apr 5 15:30:06 CEST 2007


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()?



More information about the Helma-user mailing list