package net.roseindia.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

public class WelcomeUserAction {
	private String userName;
	private String message;

	@Action(value="/hello",results={@Result(name="success",location="/results/successPage.jsp")})
	public String execute() {
		message = "Welcome " + userName + " !";
		return "success";
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

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

	public String getUserName() {
		return userName;
	}

	public String getMessage() {
		return message;
	}
}
