Questions about grails filters

Posted by manojsingh on Stack Overflow See other posts from Stack Overflow or by manojsingh
Published on 2010-06-05T19:00:09Z Indexed on 2010/06/05 19:02 UTC
Read the original article Hit count: 194

Filed under:

Basically I have 2 questions regarding grails filters.

  1. According to grails documentation you can do something like below in a filter
if (userId != paramsUserId) {
    flash.message = "You can only modify yourself"
    redirect(action: 'list')
    return false
}

If the above condition is true then how will the return statement get executed ?

  1. Can I have a redirect in my filter to a some action which also has a redirect ?

© Stack Overflow or respective owner

Related posts about grails