标签:style blog http io color sp on div 2014
文字
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; } }
标签:style blog http io color sp on div 2014
原文地址:http://www.cnblogs.com/amIurs/p/4140788.html