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

Method execute

Struts2/Struts2-001/Struts001.java:10–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10 @Override
11 public String execute() throws Exception {
12 if ((this.username.isEmpty()) || (this.password.isEmpty())) {
13 return "error";
14 }
15 if ((this.username.equalsIgnoreCase("admin"))
16 && (this.password.equals("admin"))
17 ) {
18 return "success";
19 }
20 return "error";
21
22 }
23 public void setPassword(String password) {
24 this.password = "%{1+1}";
25 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected