MCPcopy Create free account
hub / github.com/Firebasky/Java / Struts007

Class Struts007

Struts2/Struts2-007/Struts007.java:5–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import com.opensymphony.xwork2.ActionSupport;
4
5public class Struts007 extends ActionSupport {
6 private Integer age = null;
7 private String name = null;
8 private String email = null;
9
10 public Struts007() {
11 }
12
13 public void setAge(Integer age) {
14 this.age = age;
15 }
16
17 public Integer getAge() {
18 return this.age;
19 }
20
21 public void setName(String name) {
22 this.name = name;
23 }
24
25 public String getName() {
26 return this.name;
27 }
28
29 public void setEmail(String email) {
30 this.email = email;
31 }
32
33 public String getEmail() {
34 return this.email;
35 }
36
37 public String execute() throws Exception {
38 return !this.name.isEmpty() && !this.email.isEmpty() ? "success" : "error";
39 }
40}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected