KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > examples > validate > ValidateForm


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.examples.validate;
17
18 /**
19  * @author mwessendorf
20  * @version $Revision: 1.1 $ $Date: 2005/03/24 16:47:10 $
21  * $Log: ValidateForm.java,v $
22  * Revision 1.1 2005/03/24 16:47:10 matzew
23  * changed (again) example webapp stuff
24  *
25  * Revision 1.1 2005/03/12 11:40:08 matzew
26  * refactoring sample web apps (one website and one simple app)
27  *
28  * Revision 1.3 2004/11/21 12:39:09 mmarinschek
29  * better Error handling
30  *
31  */

32 public class ValidateForm {
33
34     private String JavaDoc email = null;
35     private String JavaDoc email2 = null;
36     private String JavaDoc creditCardNumber = null;
37     private String JavaDoc regExpr = null;
38     
39     private String JavaDoc equal = null;
40     private String JavaDoc equal2 = null;
41     
42     private String JavaDoc isbn =null;
43     
44
45     public String JavaDoc getEmail() {
46         return email;
47     }
48
49     public void setEmail(String JavaDoc string) {
50         email = string;
51     }
52     
53     public String JavaDoc submit(){
54         System.out.println("Action was called.");
55         return ("valid");
56     }
57
58     public String JavaDoc getCreditCardNumber() {
59         return creditCardNumber;
60     }
61
62     public void setCreditCardNumber(String JavaDoc string) {
63         creditCardNumber = string;
64     }
65
66     public String JavaDoc getEmail2() {
67         return email2;
68     }
69
70     public void setEmail2(String JavaDoc string) {
71         email2 = string;
72     }
73
74     /**
75      * @return
76      */

77     public String JavaDoc getRegExpr() {
78         return regExpr;
79     }
80
81     /**
82      * @param string
83      */

84     public void setRegExpr(String JavaDoc string) {
85         regExpr = string;
86     }
87
88     /**
89      * @return
90      */

91     public String JavaDoc getEqual2() {
92         return equal2;
93     }
94
95     /**
96      * @param string
97      */

98     public void setEqual2(String JavaDoc string) {
99         equal2 = string;
100     }
101
102     /**
103      * @return
104      */

105     public String JavaDoc getEqual() {
106         return equal;
107     }
108
109     /**
110      * @param string
111      */

112     public void setEqual(String JavaDoc string) {
113         equal = string;
114     }
115
116     public String JavaDoc getIsbn() {
117         return isbn;
118     }
119     public void setIsbn(String JavaDoc isbn) {
120         this.isbn = isbn;
121     }
122 }
123
Popular Tags