package com.course.action; import javax.servlet.http.HttpServletRequest; import org.apache.struts2.ServletActionContext; import com.course.pojo.Student; import com.course.service.IAdminService; import com.course.service.IStuService; import com.opensymphony.xwork2.ActionSupport; public class DelSelCourse extends ActionSupport { IAdminService adminService; IStuService stuService; public IAdminService getAdminService() { return adminService; } public void setAdminService(IAdminService adminService) { this.adminService = adminService; } public IStuService getStuService() { return stuService; } public void setStuService(IStuService stuService) { this.stuService = stuService; } @Override public String execute() throws Exception { HttpServletRequest request=ServletActionContext.getRequest(); Student stu=(Student) request.getSession().getAttribute("stu"); int id=Integer.parseInt(request.getParameter("id")); stuService.delStucourse(stu, adminService.getCourseById(id)); return SUCCESS; } }

wk10245 LV1
2022年10月9日
awhdauiwd LV1
2022年2月28日
* LV1
2021年12月19日
lihuazhen LV2
2021年12月15日
萨维团结阿u LV1
2021年7月5日
毫无qiushengyu LV2
2021年7月3日
Administrator LV3
2021年6月25日
阳止初四 LV8
2021年6月6日
864152530 LV5
2021年6月2日
tx1121 LV14
2021年5月6日

微信网友_6434635625074688
4月16日
暂无贡献等级
微信网友_6248713511227392 LV11
2022年12月5日
吴哈少 LV4
2022年11月30日
sweetlove LV16
2022年11月28日
Chuiwaitim LV2
2022年11月2日
帅潇潇 LV11
2022年10月22日
Weishenghui LV6
2022年10月20日
wk10245 LV1
2022年10月9日
朱朱啊哈 LV16
2022年9月14日
floweyws LV5
2022年8月29日