KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jresearch > gossip > forms > SubscribeForm


1 /*
2  * $Id: SubscribeForm.java,v 1.3 2005/06/07 12:32:17 bel70 Exp $
3  *
4  * ***** BEGIN LICENSE BLOCK *****
5  * The contents of this file are subject to the
6  * Mozilla Public License Version 1.1 (the "License"); you may not use this file
7  * except in compliance with the License. You may obtain a copy of the License
8  * at http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
12  * the specific language governing rights and limitations under the License.
13  *
14  * The Original Code is JGossip forum code.
15  *
16  * The Initial Developer of the Original Code is the JResearch, Org. Portions
17  * created by the Initial Developer are Copyright (C) 2004 the Initial
18  * Developer. All Rights Reserved.
19  *
20  * Contributor(s): Dmitriy Belov <bel@jresearch.org> . *
21  * ***** END LICENSE BLOCK*****
22  *
23  */

24 /*
25  * Created on 21.05.2004
26  *
27  */

28 package org.jresearch.gossip.forms;
29
30 import javax.servlet.http.HttpServletRequest JavaDoc;
31
32 import org.apache.struts.action.ActionMapping;
33 import org.apache.struts.validator.ValidatorForm;
34
35 /**
36  * @author dbelov
37  *
38  */

39 public class SubscribeForm extends ValidatorForm {
40     private String JavaDoc tid = "-1";
41
42     private String JavaDoc email;
43
44     /**
45      * Reset all properties to their default values.
46      *
47      * @param mapping
48      * The mapping used to select this instance
49      * @param request
50      * The servlet request we are processing
51      */

52     public void reset(ActionMapping mapping, HttpServletRequest JavaDoc request) {
53         this.tid = "-1";
54         this.email = null;
55     }
56
57     /**
58      * @return Returns the email.
59      */

60     public String JavaDoc getEmail() {
61         return email;
62     }
63
64     /**
65      * @param email
66      * The email to set.
67      */

68     public void setEmail(String JavaDoc email) {
69         this.email = email;
70     }
71
72     /**
73      * @return Returns the tid.
74      */

75     public String JavaDoc getTid() {
76         return tid;
77     }
78
79     /**
80      * @param tid
81      * The tid to set.
82      */

83     public void setTid(String JavaDoc tid) {
84         this.tid = tid;
85     }
86 }
87
Popular Tags