dfd

package me;

import  com.opensymphony.xwork2.ActionSupport;

/**
 * 
 * @author Administrator
 *
 */
public class LoginAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private  String username;
	private  String password;
	
	public String getUsername(){
		return this.username;
	}
	
	public void  setUsername(String username){
		
		 this.username= username;
	}
	
	public String getPassword(){
		return this.password;
	}
	
	public void setPassword(String password){
		this.password= password;
	}
	
	public String execute() throws Exception{
		
		if(this.getUsername().equals("xing") && this.getPassword().equals("123")){
			return "success";
		}else{
			return "error";
		}
	}
	
	
	
	

}

posted on 2011-08-15 08:29  非法操作  阅读(252)  评论(0编辑  收藏  举报

导航