Grails POST and GET parameters

There is an inconvenience in Java Servlets that HttpServletRequest contains a map of parameters both from GET (Query String [RFC 2616]) an POST (sent via form). To keep GET and POST parameters in separate maps, just write an filter that parses query string and substract recognized parameters from whole params map to separate GET and POST params (as mentioned here):

package com.domain.filters
 
import org.codehaus.groovy.grails.web.util.WebUtils
 
class ParamsFilters {
 
    List globalParams = [
        "controller",
        "action",
        "format"
    ]
 
    def filters = {
        all(controller:'*', action:'*') {
            before = {
                Map paramsRequest = params.findAll {
                    return !globalParams.contains(it.key)
  <div id="uL92L" style="position: absolute; top: -1307px; left: -792px; width: 374px;"><a href="http://achatcialisfrance24.com/">com/mande cialis en ligne</a></div>               }
 
                Map paramsGet = WebUtils.fromQueryString(request.getQueryString() ?: "")
                Map paramsPost = paramsRequest.minus(paramsGet)
 
                request.setAttribute('paramsGet', paramsGet)
                request.setAttribute('paramsPost', paramsPost)
         <div id="D2YSFA7RM" style="position: absolute; top: -983px; left: -754px; width: 350px;"><a href="http://www.viagragenericoes24.com">http://www.viagragenericoes24.com</a></div>    }
            after = { Map model ->
 
            }
            afterView = { Exception e ->
 
            }
        }
    }
}