文字

 

 

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;
}
}

最新文章

  1. popen使用不当引起产生僵尸进程
  2. 高效的使用 Response.Redirect
  3. C# 编码约定(C# 编程指南)
  4. SVN命令使用详解
  5. JavaScript input file上传前获取文件名、文件类型、文件大小等信息
  6. IIS_各种问题
  7. Scheme Implementations对比
  8. web端、android端的文件上传
  9. OPNET中FIN,FOUT以及FRET的作用 分类: opnet 2014-05-12 16:07 144人阅读 评论(0) 收藏
  10. requests使用retry策略
  11. vs 2015安装包
  12. 执行git命令时出现fatal: 'origin' does not appear to be a git repository错误
  13. MySQL如何解决1209错误
  14. nginx压测工具--wrk
  15. MT【302】利用值域宽度求范围
  16. Codeforces 861D - Polycarp's phone book 【Trie树】
  17. 【转】基于Map的简易记忆化缓存
  18. [python] can not find app ,module
  19. 初始python(三)
  20. ios常用的字符串NSString自动释放理解

热门文章

  1. WCF入门(十)---WCF事务
  2. 76. Minimum Window Substring
  3. C++:用成员初始化列表对数据成员初始化
  4. word文档标题级别批量更改——批量降级与升级实例
  5. Eclipse - FindBugs Plugin 的安装和使用
  6. HDU 1358 (所有前缀中的周期串) Period
  7. 解析CSS加密技术之“障眼法”
  8. UVALive 4452 The Ministers' Major Mess(2-sat)
  9. Linux likely unlikely
  10. RESTful API 设计最佳实践(转)