📄 updategoodsaction.java
字号:
package com.wl.actionimpl;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.wl.action.Action;
import com.wl.dao.CommcateDAO;
import com.wl.entity.GoodsType;
public class UpdateGoodsAction implements Action {
public String doExcute(HttpServletRequest request,
HttpServletResponse response) {
String gid = request.getParameter("id");
int id = Integer.parseInt(gid);
String commodityId = request.getParameter("commodityId");
String commodityName = request.getParameter("commodityName");
GoodsType g = new GoodsType();
g.setId(id);
g.setCommodityId(commodityId);
g.setCommodityName(commodityName);
CommcateDAO dao = new CommcateDAO();
dao.updateCar(g);
return "/wangjianwei/showgoods.jsp";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -