Source

gaelyk-template-project-hg / war / WEB-INF / groovy / datetime.groovy

Full commit
1
2
3
4
5
6
7
8

log.info "Setting attribute datetime"

request.setAttribute 'datetime', new Date().toString()

log.info "Forwarding to the template"

forward '/WEB-INF/pages/datetime.gtpl'