只是用Word2013发来

 

 

 

城市或城镇

点 A

点 B

点 C

点 D

点 E

点 A

    

点 B

87

   

点 C

64

56

  

点 D

37

32

91

 

点 E

93

35

54

43

 

    

package com.myeclipseide.example.myblog.secure;

 

import com.opensymphony.xwork2.ActionSupport;

 

public class AuthenticateUser extends ActionSupport {

 

    private String userName;

 

    private String password;

 

    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;

    }

 

    public String execute() {

        // Empty username or password value is not permitted.

        if (getUserName().equals("") || getPassword().equals("")) {

            addActionError("Invalid username or password. Please try again!");

            return ERROR;

        }

        return SUCCESS;

    }

}

posted @ 2014-12-03 17:43  _amIurs  阅读(94)  评论(0编辑  收藏  举报