forked from leonardoanalista/java2word
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGetNameForm.java
More file actions
40 lines (33 loc) · 1.31 KB
/
Copy pathGetNameForm.java
File metadata and controls
40 lines (33 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*******************************************************************************
* Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
* Distributed under license by Red Hat, Inc. All rights reserved.
* This program is made available under the terms of the
* Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Exadel, Inc. and Red Hat, Inc. - initial API and implementation
******************************************************************************/
package demo;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
public class GetNameForm extends ActionForm {
private String name="";
public GetNameForm() {
}
public void reset(ActionMapping actionMapping, HttpServletRequest request) {
this.name="";
}
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest request) {
ActionErrors errs = new ActionErrors();
return errs;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = (name==null?"":name);
}
}