Setting:
import javax.servlet.http.Cookie
def c = new Cookie(someName, someValue)
c.maxAge = someNumberInSeconds
response.addCookie(c)
Getting:
request.cookies.each { println "${it.name} == ${it.value} }
Setting:
import javax.servlet.http.Cookie
def c = new Cookie(someName, someValue)
c.maxAge = someNumberInSeconds
response.addCookie(c)
Getting:
request.cookies.each { println "${it.name} == ${it.value} }
2011-03-25 09:45:25,798 [http-8080-2] ERROR errors.GrailsExceptionResolver - No signature of method: org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper.getFile() is applicable for argument types: (java.lang.String) values: [file]
Possible solutions: getXML(), getAt(java.lang.String), getAt(java.lang.String), getLocale(), getJSON(), getHeader(java.lang.String)
groovy.lang.MissingMethodException: No signature of method: org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper.getFile() is applicable for argument types: (java.lang.String) values: [file]
Possible solutions: getXML(), getAt(java.lang.String), getAt(java.lang.String), getLocale(), getJSON(), getHeader(java.lang.String)
at check.ProductScreenBinaryController$_closure7.doCall(check.ProductScreenBinaryController:85)
at check.ProductScreenBinaryController$_closure7.doCall(check.ProductScreenBinaryController)
at java.lang.Thread.run(Thread.java:680)