grails respond error page with status from Url mapping file -
can respond error pages status code url mapping file.
basically have democontroller action index. , have created url mapping "/" -> demo/index. index action of demo controller accessible 2 urls i.r. /demo/index , /.
now want if hit /demo/index should respond error page status 404
what excluding /demo/index
mapping this:
static excludes = ['/demo/index']
Comments
Post a Comment