TempateServlet requires default constroctor at TemplateEngine

TemplateServlet requires template engine which have default constructor to run.
If it is, you can use MarkupTempateEngine with http request through TemplateServlet without even single code.

 <web-app>
   <servlet>
     <servlet-name>template</servlet-name>
     <servlet-class>groovy.servlet.TemplateServlet</servlet-class>
     <init-param>
         <param-name>template.engine</param-name>
         <param-value>groovy.text.markup.MarkupTemplateEngine</param-value>
     </init-param>
   </servlet>

Other siblings of groovy.text.TemplateEngines have default constructor.