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

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
  2. <jsp:useBean id="sharesortBean" class="MyFly.Bean.sharesortBean" scope="request"/>
  3. <%
  4.   request.setCharacterEncoding("GB2312");
  5. %>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  10. <title>无标题文档</title>
  11. </head>
  12. <body>
  13. <%
  14.      String index=request.getParameter("index");
  15.      String share=request.getParameter("share");
  16.  sharesortBean.setSucceedFxID(Integer.parseInt(index));
  17.  sharesortBean.setSucceedFxName(share);
  18.  
  19. if(sharesortBean.update() == 1)
  20. {
  21.      out.println("<script language=javascript>location.href='sharesortView.jsp';</script>");
  22. }
  23. else
  24. {
  25.    out.println("<Script language=JavaScript>alert('修改失败,请重新修改');JavaScript:history.back();</Script>");
  26. }
  27. %>
  28. </body>
  29. </html>