1 6 7 package org.contineo.forms; 8 9 import javax.servlet.http.HttpServletRequest ; 10 import org.apache.struts.action.ActionForm; 11 import org.apache.struts.action.ActionMapping; 12 16 public class PasswordForm extends ActionForm { 17 18 private static final long serialVersionUID = 1L; 19 20 23 String oldPassword; 24 27 String newPassword; 28 31 String retyped; 32 33 34 public PasswordForm() { 35 oldPassword = ""; 36 newPassword = ""; 37 retyped = ""; 38 } 39 40 44 public String getOldPassword() { 45 return oldPassword; 46 } 47 48 52 public String getNewPassword() { 53 return newPassword; 54 } 55 56 60 public String getRetyped() { 61 return retyped; 62 } 63 64 68 public void setOldPassword(String opwd) { 69 oldPassword = opwd; 70 } 71 72 76 public void setNewPassword(String npwd) { 77 newPassword = npwd; 78 } 79 80 84 public void setRetyped(String re) { 85 retyped = re; 86 } 87 88 89 public void reset(ActionMapping mapping, HttpServletRequest request) { 90 oldPassword = ""; 91 newPassword = ""; 92 retyped = ""; 93 } 94 } 95 | Popular Tags |