用Windows Live Writer发来
2024-10-19 01:24:38
文字
package com.myeclipseide.example.myblog.secure; import com.opensymphony.xwork2.ActionSupport; public class AuthenticateUser extends ActionSupport { private String userName; private String password; public String getUserName() {
return userName;
} public void setUserName(String userName) {
this.userName = userName;
} public String getPassword() {
return password;
} public void setPassword(String password) {
this.password = password;
} public String execute() {
// Empty username or password value is not permitted.
if (getUserName().equals("") || getPassword().equals("")) {
addActionError("Invalid username or password. Please try again!");
return ERROR;
}
return SUCCESS;
}
}
最新文章
- popen使用不当引起产生僵尸进程
- 高效的使用 Response.Redirect
- C# 编码约定(C# 编程指南)
- SVN命令使用详解
- JavaScript input file上传前获取文件名、文件类型、文件大小等信息
- IIS_各种问题
- Scheme Implementations对比
- web端、android端的文件上传
- OPNET中FIN,FOUT以及FRET的作用 分类: opnet 2014-05-12 16:07 144人阅读 评论(0) 收藏
- requests使用retry策略
- vs 2015安装包
- 执行git命令时出现fatal: 'origin' does not appear to be a git repository错误
- MySQL如何解决1209错误
- nginx压测工具--wrk
- MT【302】利用值域宽度求范围
- Codeforces 861D - Polycarp's phone book 【Trie树】
- 【转】基于Map的简易记忆化缓存
- [python] can not find app ,module
- 初始python(三)
- ios常用的字符串NSString自动释放理解
热门文章
- WCF入门(十)---WCF事务
- 76. Minimum Window Substring
- C++:用成员初始化列表对数据成员初始化
- word文档标题级别批量更改——批量降级与升级实例
- Eclipse - FindBugs Plugin 的安装和使用
- HDU 1358 (所有前缀中的周期串) Period
- 解析CSS加密技术之“障眼法”
- UVALive 4452 The Ministers' Major Mess(2-sat)
- Linux likely unlikely
- RESTful API 设计最佳实践(转)