characterclassDel.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:1k
源码类别:
Applet
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK"%>
- <%@ page import="java.sql.*"%>
- <% request.setCharacterEncoding("GB2312");%>
- <jsp:useBean id="characterclassBean" class="MyFly.Bean.characterclassBean" scope="request"/>
- <jsp:useBean id="productinfoBean" class="MyFly.Bean.productinfoBean" scope="request"/>
- <body bgcolor="#799ae1">
- <%
- String id=request.getParameter("classid");
- if(productinfoBean.isHasCharacter(Integer.parseInt(id)) == false)
- {
- out.println("<Script language=JavaScript>alert('无法删除类别,类别关联于产品信息表中');javascript:history.back();</Script>");
- }
- else if(characterclassBean.delete(Integer.parseInt(id))==0)
- {
- out.println("<Script language=JavaScript>alert('删除出错');javascript:history.back();</Script>");
- }
- else
- {
- response.sendRedirect("characterclassView.jsp");
- }
- %>
- </body>