33343536373839
@Override protected void init() { // velocity template getWebContext().addViewDispatcher("velocity", new VelocityDispatcher()); }
3637383940414243
public class HelloWorldService extends AbstractService { protected void init() { getWebContext().addViewDispatcher("velocity", new VelocityDispatcher()); getWebContext().addViewDispatcher("st", new StringTemplateDispatcher()); }