Grails

Applying layout to template at Runtime in Grails Application

There are use cases where we render the template from our action and update some div in the page using ajax. The downside of this approach is when the user hits the url directly in browser address bar and the UI get totally messed up. So to fix this issue we need to apply the layout at runtime and its pretty easy in grails to do...

by Uday Pratap Singh
Tag: isAjax
16-Mar-2014

Grails

Enhance HttpServletRequest using metaprogramming

Most of the times we use request.getHeader("user-agent") to get the client browser user-agent details inside the Grails Filters or Controllers. User-agent is one of the examples. There are so many such methods e.g. method for checking whether the request was an ajax call, getting IP address of the client machine, checking whether the...

by Bhagwat Kumar
Tag: isAjax
25-Sep-2012