Hi,
Im trying to write a Filter for my web-app. I read [the documentation][1], and wrote this dummy filter in my grails-app/conf
directory
class SecurityFilters {
def filters = {
someFilter(controller:'*',action:'*') {
write('Filtering')
}
}
}
Next thing I do is set a breakpoint on the write
statement, but it just doesn't stop there.
Do I need to "register" this filter or anything? Spring may be bodering?
From this question, it doesn't look like it.
Maybe i'm doing something wrong, or overlooked anything?
update
class SecurityFilters {
def filters = {
all(controller:'*',action:'*') {
before={
println 'Filtering'
return false
}
}
}
}
Thanks in advance.
[1]: http://www.grails.org/doc/1.3.x/guide/single.html#6.6 Filters