Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.larryalcantara.struts2;
- public class LogInAction {
- private String username;
- private String password;
- public String execute() {
- if(this.username.equals("admin")
- && this.password.equals("admin123")) {
- return "success";
- } else {
- return "error";
- }
- }
- 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;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement