useclassDel.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:1k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK"%>
  2. <%@ page import="java.sql.*"%>
  3. <% request.setCharacterEncoding("GB2312");%>
  4. <jsp:useBean id="useclassBean" class="MyFly.Bean.useclassBean" scope="request"/>
  5. <jsp:useBean id="productinfoBean" class="MyFly.Bean.productinfoBean" scope="request"/>
  6. <body bgcolor="#799ae1">
  7. <%
  8. String id=request.getParameter("classid");
  9. if(productinfoBean.isHasUseclass(Integer.parseInt(id)) == false)
  10. {
  11.     out.println("<Script language=JavaScript>alert('无法删除类别,类别关联于产品信息表中');javascript:history.back();</Script>");
  12. }
  13. else if(useclassBean.delete(Integer.parseInt(id))==0)
  14. {
  15. out.println("<Script language=JavaScript>alert('删除出错');javascript:history.back();</Script>");
  16. }
  17. else
  18. {
  19.     response.sendRedirect("useclassView.jsp");
  20. }
  21. %>
  22. </body>