Tuesday 29 July 2008

Where did the Response go in 1.0.3?

We noticed that in the move from Grails 1.0.2 to 1.0.3, the response object inside Spring's RequestContextHolder has seemingly gone but it looks like it's always been somewhere else:

So:

def response = org.springframework.web.context.request.RequestContextHolder.requestAttributes.response

Becomes:

def response = org.springframework.web.context.request.RequestContextHolder.requestAttributes.currentResponse



Worth keeping an eye out for.

No comments: