API / Apache Grails Interview questions
What is a Groovy Server Page (GSP)?
A GSP is Grails' server-side view template format — an HTML file with embedded Groovy expressions and a rich library of custom tags, saved with a .gsp extension in grails-app/views, that renders dynamic content on the server before sending plain HTML to the browser.
Groovy code embeds with familiar <%= expression %> and <% code %> scriptlet syntax, but most day-to-day GSP work uses Grails' built-in tag libraries instead — tags like <g:each> for iteration, <g:link> for generating URLs by convention rather than hardcoding paths, and <g:message> for pulling internationalized text — which keeps templates more declarative and less script-heavy than raw embedded code would be.
Developers can also write their own custom tag libraries as Groovy classes in grails-app/taglib, extending the same tag syntax with application-specific reusable view logic, the same way a Grails plugin extends the framework itself.
More Related questions...