1 16 package org.apache.myfaces.examples.forceid; 17 18 import org.apache.commons.logging.Log; 19 import org.apache.commons.logging.LogFactory; 20 import org.apache.myfaces.application.jsp.JspStateManagerImpl; 21 22 25 public class User { 26 27 public String username,password; 28 private static final Log log = LogFactory.getLog(User.class); 29 30 public User(){} 31 32 public User(String username,String password){ 33 this.username = username; 34 this.password = password; 35 } 36 37 public String getPassword() { 38 return password; 39 } 40 public void setPassword(String password) { 41 this.password = password; 42 } 43 public String getUsername() { 44 return username; 45 } 46 public void setUsername(String username) { 47 this.username = username; 48 } 49 50 public String update(){ 51 if(log.isDebugEnabled()){ 52 log.debug("USERNAME: "+this.username); 53 log.debug("PASSWORD: "+this.password); 54 } 55 return ("go_forceId"); 56 } 57 } 58 | Popular Tags |