直接获取成功页面

时间:2016-01-10 11:35:50

标签: struts2

DeleteAction.java

public class DeleteAction extends ActionSupport{
    private String email;
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    @Override

    public String execute(){
        UserManager um = new UserManagerImpl();
        try {
            um.deletestudent(email);
        } catch (Exception e) {
            return INPUT;
        }
        return SUCCESS;
    }
}`

我是新编码,我直接获得成功页面。请帮助我解决问题。我想从数据库中删除数据。

0 个答案:

没有答案