01: package org.ztemplates.tutorial.yui.index;
02:
03: import org.ztemplates.actions.ZMatch;
04: import org.ztemplates.web.ZTemplates;
05:
06: @ZMatch("/")
07: public class IndexAction {
08: public static String createUrl() throws Exception {
09: IndexAction act = new IndexAction();
10: return ZTemplates.getServletService().createUrl(act);
11: }
12:
13: public void after() throws Exception {
14: IndexView view = new IndexView();
15: ZTemplates.getServletService().render(view);
16: }
17: }
|