Rev 19 |
Go to most recent revision |
View as "text/plain" |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
1
package ch.ffhs.webE.action;
import com.opensymphony.xwork2.ActionSupport;
public class LoginAction
extends ActionSupport
{
private static final long serialVersionUID = 1799753056277211344L
;
private String userName
;
private String password
;
public LoginAction
() {
}
public String execute
() {
//TODO: DB Abfrage für Login
if("moos".
equals(getUserName
())) {
return "success";
} else {
return "failed";
}
}
public String getUserName
() {
return userName
;
}
public void setUserName
(String userName
) {
this.
userName = userName
;
}
public String getPassword
() {
return password
;
}
public void setPassword
(String password
) {
this.
password = password
;
}
}