1 16 package org.apache.myfaces.examples.validate; 17 18 32 public class ValidateForm { 33 34 private String email = null; 35 private String email2 = null; 36 private String creditCardNumber = null; 37 private String regExpr = null; 38 39 private String equal = null; 40 private String equal2 = null; 41 42 private String isbn =null; 43 44 45 public String getEmail() { 46 return email; 47 } 48 49 public void setEmail(String string) { 50 email = string; 51 } 52 53 public String submit(){ 54 System.out.println("Action was called."); 55 return ("valid"); 56 } 57 58 public String getCreditCardNumber() { 59 return creditCardNumber; 60 } 61 62 public void setCreditCardNumber(String string) { 63 creditCardNumber = string; 64 } 65 66 public String getEmail2() { 67 return email2; 68 } 69 70 public void setEmail2(String string) { 71 email2 = string; 72 } 73 74 77 public String getRegExpr() { 78 return regExpr; 79 } 80 81 84 public void setRegExpr(String string) { 85 regExpr = string; 86 } 87 88 91 public String getEqual2() { 92 return equal2; 93 } 94 95 98 public void setEqual2(String string) { 99 equal2 = string; 100 } 101 102 105 public String getEqual() { 106 return equal; 107 } 108 109 112 public void setEqual(String string) { 113 equal = string; 114 } 115 116 public String getIsbn() { 117 return isbn; 118 } 119 public void setIsbn(String isbn) { 120 this.isbn = isbn; 121 } 122 } 123 | Popular Tags |