📄 price1action.java
字号:
package controller;import javax.servlet.http.*;import org.apache.struts.action.*;import model.*;import java.util.*;public class Price1Action extends Action { private final static String SUCCESS = "success"; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { String raw_button = request.getParameter("price_button"); if (raw_button != null) { PriceHandler f = (PriceHandler) form; int id = f.getSelId(); String price = f.getprice(); ProductsBean.updateRecord(id, price); return mapping.findForward("success"); } return mapping.findForward(SUCCESS); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -