01: /* Action.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Mon Sep 5 20:29:31 2005, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2005 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.web.servlet.dsp.action;
20:
21: import java.io.IOException;
22: import javax.servlet.ServletException;
23:
24: /**
25: * An action that could be used with
26: * {@link org.zkoss.web.servlet.dsp.InterpreterServlet}.
27: * It is like a tag in JSP.
28: *
29: * @author tomyeh
30: */
31: public interface Action {
32: /** Processes the action and renders the output to
33: * {@link ActionContext#getOut}.
34: *
35: * @param nested whether there is any nested content.
36: */
37: public void render(ActionContext ac, boolean nested)
38: throws ServletException, IOException;
39: }
|