package com.yuki.servlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.yuki.dao.Staff_Jdbc; import com.yuki.staff.Staff; /** * 删除员工控制器 * @author Ryosetsu_Tsan * */ @WebServlet("/staffInfoDelete") @SuppressWarnings("serial") public class StaffInfoDeleteServlet extends HttpServlet{ @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { this.doPost(req, resp); } @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { //根据id删除 Staff staff=new Staff(); staff.setId(Integer.parseInt(req.getParameter("id"))); boolean ret=new Staff_Jdbc().shan(staff); req.getRequestDispatcher("staffInfoList").forward(req,resp); } }
最近下载更多
微信网友_6906962132258816 LV6
3月22日
RAINK_L LV3
2023年12月13日
jiemomo LV12
2023年10月19日
微信网友_6672184532766720 LV3
2023年10月10日
诺一啊啊啊啊啊 LV3
2023年6月15日
KAIzx11 LV7
2023年6月13日
gala209 LV3
2023年2月2日
caohanren LV11
2022年12月17日
微信网友_6255730581377024 LV1
2022年12月14日
exkikk LV1
2022年12月12日
最近浏览更多
chenpeng27
4月16日
暂无贡献等级
zolscy LV12
4月7日
邓艺妮
4月3日
暂无贡献等级
阿昌先生 LV13
4月1日
微信网友_6906962132258816 LV6
3月22日
quartz LV7
3月13日
阿卡丽 LV3
2月7日
gxxxxx
1月25日
暂无贡献等级
heshao LV2
1月24日
kaye7549317
1月16日
暂无贡献等级