`

利用Stripes写的一个简单Action

阅读更多
public class HelloActionBean implements ActionBean {
	ActionBeanContext context;

	public void setContext(ActionBeanContext context) {
		this.context = context;
	}

	public ActionBeanContext getContext() {
		return this.context;
	}

	String message;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@HandlesEvent("sayHello")
	public Resolution greeting() {
		// return new RedirectResolution("/greeting.jsp");
		return new ForwardResolution("/jsp/greeting.jsp");
	}
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics