| 3 | import com.opensymphony.xwork2.ActionSupport; |
| 4 | |
| 5 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected