Action

From Documentation
Revision as of 04:16, 12 March 2011 by Tomyeh (talk | contribs)


An action is POJO. It does not have to implement any interface. Of course, it has to implement the method specified in WEB-INF/zest. For example,

package foo;
public class HelloAction {
	private String _message = "Welcome";

	/** The execute method specified in WEB-INF/zest.xml. */
	public String execute() {
		return "success";
	}

	/** Sets the message. */
	public void setMessage(String message) {
		_message = message;
	}
	/** Returns the message. */
	public String getMessage() {
		return _message;
	}
}

Signature of the execute Method

Parameters of the Request

Version History

Last Update : 2011/03/12


Version Date Content
     



Last Update : 2011/03/12

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.