ChangePrice.jsp
上传用户:lsj999sz
上传日期:2022-06-15
资源大小:4717k
文件大小:1k
源码类别:

ICQ/即时通讯

开发平台:

Java

  1. <%@ page language="java" import="com.bjsxt.shopping.product.*, java.util.*" %>
  2. <%
  3. int id = Integer.parseInt(request.getParameter("id"));
  4. double normalPrice = Double.parseDouble(request.getParameter("normalprice"));
  5. System.out.println(id);
  6. //update the database
  7. Product p = ProductMgr.getInstance().loadById(id);
  8. p.setNormalPrice(normalPrice);
  9. ProductMgr.getInstance().update(p);
  10. response.setContentType("text/html;charset=gbk");
  11. response.setHeader("Cache-Control", "no-store"); //HTTP1.1
  12. response.setHeader("Pragma", "no-cache"); //HTTP1.0
  13. response.setDateHeader("Expires", 0); //prevents catching at proxy server
  14. %>