Grails provides render converter plugin for xml so if we want generate xml and render it to response writer, we can do like this:
render(contentType:"text/xml") {
books {
book(title:b.title,author:b.author)
...
I collect a lot of links resources to help in considering Grails as web framework.
Question:
I'm wondering how can I get the java web application context within a Grails Service?
Example if i want to read file inside the application's directories from the Service.