I\'ve got a simple method that looks at the request parameters coming through from a form and displays the values in a string. This method is working just fine but when an empty
You could make use of subMap:
subMap
request.requestParameterMap .subMap(products) .findResults { k, v -> v ?: null } .join(':')