WELCOME Abdennour : Software engineer

Aug 21, 2013

Get session instance in grails View (GSP)



<% def sess=org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes().getSession() %>


 <% sess?.attr1=new Date(); %>



<span>  sess?.attr1</span>

No comments:

Post a Comment