/ Published in: Groovy

how to call session from grails service (spring service)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/// for example in your controller you write : session.user = "wysmedia" ; /// you can retrive the value on grails service using this following way. import javax.servlet.http.HttpSession import org.springframework.web.context.request.RequestContextHolder class SessionStorageService { getSession().user = user } getSession().user } } }
Comments
