一个很好的使用struts技术的地址簿的例子,很值得

源代码在线查看: userbean.java

软件大小: 105 K
上传用户: mmmmmmmmmxxx
关键词: struts 地址
下载地址: 免注册下载 普通下载 VIP

相关代码

				package addressbook.model;
				
				import java.io.Serializable;
				import java.util.Enumeration;
				import java.util.Hashtable;
				
				/**
				 * UserBean will hold all of the information
				 * regarding a specific user of the AddressBook application.
				 */
				public final class UserBean implements Serializable {
				
				
				    private String password = null;
				    private String userName = null;
				   // Getter/Setter methods for all defined properties
				
				    public String getPassword() {
				
					return (password);
				
				    }
				   public String getUserName() {
				
					return (userName);
				
				    }
				    public void setPassword(String password) {
				
					this.password = password;
				
				    }
				    public void setUserName(String userName) {
				
					this.userName = userName;
				
				    }
				
				    public String toString() {
				
				        StringBuffer sb = new StringBuffer("User[username=" + userName + "]");
				        return (sb.toString());
				
				    }
				}
							

相关资源