def filters = {
forUser(controller:'user', action:'*') {
before = {
user=springSecurityService.getCurrentUser()
log.info("came to filter and the user is" + user)
}
after = {
}
afterView = {
}
}
}
我想在用户控制器中访问这个用户变量。是否可以不创建会话变量?