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

Applet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@ page import="java.sql.* ,java.util.Date,java.text.SimpleDateFormat"%>
  3. <%
  4.   request.setCharacterEncoding("GB2312");
  5. %>
  6. <jsp:useBean id="symbolBean" class="MyFly.Bean.symbolBean" scope="request"/>
  7. <body bgcolor="#799ae1">
  8. <%
  9.     String index=request.getParameter("index");
  10. String explain=request.getParameter("explain");
  11. String phone=request.getParameter("phone");
  12. String email=request.getParameter("email");
  13. String copyright=request.getParameter("copyright");
  14. String other=request.getParameter("other");
  15. symbolBean.setExplainID(Integer.parseInt(index));
  16. symbolBean.setExplain(explain);
  17. symbolBean.setPhone(phone);
  18. symbolBean.setEmail(email);
  19. symbolBean.setCopyright(copyright);
  20. symbolBean.setOther(other);
  21. if(symbolBean.update() == 1)
  22. {
  23.      out.println("<script language=javascript>alert('更新成功!');location.href='symbolView.jsp';</script>");
  24.  
  25. }
  26. else
  27. {
  28.    out.println("<Script language=JavaScript>alert('更新失败,请重新添加');JavaScript:history.back();</Script>");
  29. }
  30. %>
  31. </body>