?? price1action.java
字號(hào):
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); }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -