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

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <jsp:useBean id="sharesubstanceBean" class="MyFly.Bean.sharesubstanceBean" scope="request"/>
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  7. <title>无标题文档</title>
  8. </head>
  9. <body>
  10. <%!
  11. String fun(String str)
  12.   {
  13.     try
  14.    {
  15.          return new String(str.getBytes("ISO8859-1"));
  16.    }catch(Exception e)
  17.    {
  18.       return null;
  19. }
  20.   }
  21.   %>
  22. <%
  23.   String type="";
  24.   String index="";
  25.   type=fun(request.getParameter("type"));
  26.   index=request.getParameter("index");
  27.   if(sharesubstanceBean.delete(Integer.parseInt(index))==0)
  28.    {
  29. out.println("<Script language=JavaScript>alert('删除出错');javascript:history.back();</Script>");
  30. }
  31. else
  32. {
  33.     response.sendRedirect("success_sharetitle_detail.jsp?type="+type);
  34. }
  35.  %>
  36. </body>
  37. </html>