01: package org.ztemplates.tutorial.urlreferences;
02:
03: import org.ztemplates.actions.ZMatch;
04: import org.ztemplates.web.ZTemplates;
05:
06: @ZMatch("/urlreferences/#{content}")
07: public class UrlReferencesAction {
08: private IContent content;
09:
10: public IContent getContent() {
11: return content;
12: }
13:
14: public void setContent(IContent content) {
15: this .content = content;
16: }
17:
18: public void after() throws Exception {
19: UrlReferences pojo = new UrlReferences();
20: pojo.setMessage(content.getMessage() + " from "
21: + content.getClass().getName());
22: ZTemplates.getServletService().render(pojo);
23: }
24: }
|