首页>代码>Struts2开发最简单学生后台管理系统,实现基本的增删改查操作,适合struts2入门学习>/StudentMessage2/src/com/lee/action/operation/OperationDeleteMessageAction.java
package com.lee.action.operation;

import com.lee.action.SuperAction;
import com.lee.dao.OperationMessagesDao;

public class OperationDeleteMessageAction extends SuperAction {
    /**
     * 
     */
    private static final long serialVersionUID = -2889068838703617160L;
    private int number;
    
    @Override
    public String execute() {
        boolean checkDelete = new OperationMessagesDao().deleteMessage(number);
        
        if(checkDelete) {
            return SUCCESS;
        } else {
            return ERROR;
        }
    }
    
    public int getNumber() {
        return number;
    }
    public void setNumber(int number) {
        this.number = number;
    }

}
最近下载更多
xz2000525  LV2 2022年5月29日
流年不辜  LV9 2022年5月6日
山东大馒头  LV1 2022年4月27日
G.  LV1 2021年11月15日
and123456  LV11 2021年10月22日
ming_123_9715  LV23 2021年3月16日
shenshilei  LV4 2020年6月19日
kuluohua  LV15 2020年6月16日
qq2528732622  LV8 2020年6月15日
Jerry123123  LV2 2020年6月14日
最近浏览更多
颜菜菜  LV2 2023年12月30日
卢本伟不开挂  LV4 2023年10月22日
wuge123  LV8 2023年6月12日
xiaoding0324 2023年5月28日
暂无贡献等级
余杉舟  LV8 2023年5月4日
XXXXYX 2023年3月30日
暂无贡献等级
不知道取什么名字12  LV1 2022年12月12日
ffxxyy  LV1 2022年12月8日
Jhhhhh  LV6 2022年12月3日
itlaolang  LV5 2022年11月30日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友