I have a controller that needs to return a 404 page and a status code under certain conditions. I can't seem to figure out how to do this in Grail. The employee recommended this method:
response.sendError(HttpServletResponse.SC_NOT_FOUND)
which works great, but not very similar to Grails. I know that the Rails rendering method takes a state argument, but Grails rendering does not have this functionality. Is there something I'm missing, what is the best way to do this?
Jack Chu Sep 15 '09 at 20:18 2009-09-15 20:18
source share