测试code

package com.leapiny.ssh.webapp.action;

import com.opensymphony.xwork2.ActionSupport;

public class HelloAction extends ActionSupport  {
	private String message;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public String execute() throws Exception {
		if (message.length()>5)
			return "success";
		return "success2";
	}
}

你可能感兴趣的:(java,ssh)