Grails filters after action return value

Should I return boolean from the "after" grails filter action? I think it is useless, I need confirmation

+4
source share
2 answers

In my experience, I also do not need. The filter "after" is started after the logic of the controller and before the visualization of the template. The rendering phase will occur no matter what you return from the after filter.

+2
source

A return boolean false before closing will prevent all future filters and actions from executing.

http://grails.org/doc/2.3.7/guide/single.html#filterTypes

As Tri points out, the return value after closing is not affected.

0
source

Source: https://habr.com/ru/post/1436296/


All Articles