You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

package example;

import com.googlecode.scopeplugin.annotations.In;
import com.googlecode.scopeplugin.annotations.Out;
import com.opensymphony.xwork2.Action;

public class LoginAction implements Action {
	private String userName;
	private String password;
         private boolean remember;
         private boolean forget;
	
	public String login() {
                  // Perform login logic...

		return SUCCESS;
	}

	@In(scope=ScopeType.COOKIE)
	public void setUserName(String userName) {
		this.userName= userName;
	}

	@In(scope=ScopeType.COOKIE)
	public void setPasswored(String password) {
		this.password= password;
	}

	public void setRemember(boolean remember) {
		this.remember= remember;
	}

	public void setForget(boolean forget) {
		this.forget = forget;
	}

}
  • No labels