updategoodsaction.java
来自「老牌java开发的物流管理系统 详细的我也没有怎么看 好像是恒基的」· Java 代码 · 共 28 行
JAVA
28 行
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 + =
减小字号Ctrl + -
显示快捷键?