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;
}
}`
我是新编码,我直接获得成功页面。请帮助我解决问题。我想从数据库中删除数据。