1   /*Copyright (C) 2004-... Stephane Gauchet for Hyphonem
2   
3    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
4   
5    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6   
7    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
8    
9    Written by St�phane Gauchet
10   mail me at : sgauchet@free.fr
11   */
12  package fr.hyphonem.conges.forms;
13  
14  import javax.servlet.http.HttpServletRequest;
15  
16  import org.apache.struts.action.ActionErrors;
17  import org.apache.struts.action.ActionForm;
18  import org.apache.struts.action.ActionMapping;
19  
20  /**
21   * @author Stephane Gauchet pour Hyphonem
22   * 
23   */
24  public class BidonForm extends ActionForm {
25  
26  	/**
27  	 * 
28  	 */
29  	private static final long serialVersionUID = 1L;
30  
31  	private String choixEmployee;
32  
33  	/**
34  	 * Constructor for SmrBurLstParaForm.
35  	 */
36  	public BidonForm() {
37  		super();
38  		resetFields();
39  	}
40  
41  	/**
42  	 * Reset all properties to their default values.
43  	 * 
44  	 * @param mapping
45  	 *            The mapping used to select this instance
46  	 * @param request
47  	 *            The servlet request we are processing
48  	 */
49  	public void reset(ActionMapping mapping, HttpServletRequest request) {
50  		resetFields();
51  
52  	}
53  
54  	private void resetFields() {
55  		choixEmployee = "";
56  	}
57  
58  	/**
59  	 * Validate the properties that have been set from this HTTP request, and
60  	 * return an <code>ActionErrors</code> object that encapsulates any
61  	 * validation errors that have been found. If no errors are found, return
62  	 * <code>null</code> or an <code>ActionErrors</code> object with no
63  	 * recorded error messages.
64  	 * 
65  	 * @param mapping
66  	 *            The mapping used to select this instance
67  	 * @param request
68  	 *            The servlet request we are processing
69  	 */
70  	public ActionErrors validate(ActionMapping mapping,
71  			HttpServletRequest request) {
72  
73  		ActionErrors errors = new ActionErrors();
74  
75  		return errors;
76  	}
77  
78  	/**
79  	 * Returns the choixEmployee.
80  	 * 
81  	 * @return String
82  	 */
83  	public String getChoixEmployee() {
84  		return choixEmployee;
85  	}
86  
87  	/**
88  	 * Sets the choixEmployee.
89  	 * 
90  	 * @param choixEmployee
91  	 *            The choixEmployee to set
92  	 */
93  	public void setChoixEmployee(String choixEmployee) {
94  		this.choixEmployee = choixEmployee;
95  	}
96  
97  }