package net.hgdonline.action;
import com.opensymphony.xwork2.ActionSupport;
import net.hgdonline.pojo.User;
import net.hgdonline.service.UserService;
/**
* Created with IntelliJ IDEA.
* User: 雄伟
*
* Date: 13-10-9
* Time: 下午8:14
* To change this template use File | Settings | File Templates.
*/
public class LoginAction extends ActionSupport {
private UserService userService;
private User user;
public UserService getUserService() {
return userService;
}
public void setUserService(UserService userService) {
this.userService = userService;
}
@Override
public String execute() throws Exception {
System.out.println(user.getUsername());
System.out.println(user.getPassword());
boolean flag = this.getUserService().findUser(user);
if (flag) {
return SUCCESS;
} else {
return INPUT;
}
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
}
最近下载更多
jiemomo LV12
2023年10月19日
and123456 LV11
2022年2月11日
1029162867 LV13
2021年11月8日
1065466539 LV1
2021年1月16日
mrmrmr2333 LV4
2020年11月6日
aaron2953 LV11
2020年9月1日
123sacac LV1
2020年6月17日
ahuan123 LV4
2020年6月10日
2410068425 LV23
2020年6月1日
leikelin LV8
2020年5月20日

最近浏览