useclassUpdate.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. <body bgcolor="#799ae1">
  6. <%
  7. String id=request.getParameter("classid");
  8. String name=request.getParameter("name");
  9. String content=request.getParameter("content");
  10. String char1=request.getParameter("character");
  11.   //System.out.print(char1);
  12. useclassBean.setUseclassID(Integer.parseInt(id));
  13. useclassBean.setUseclassName(name);
  14. useclassBean.setUseclassInfo(content);
  15. useclassBean.setUseclasscharacterID(Integer.parseInt(char1));
  16. if(useclassBean.updateUse()==0)
  17.     {
  18. out.println("<Script language=JavaScript>alert('更新出错');javascript:history.back();</Script>");
  19.      
  20. }
  21. else
  22. {
  23.     response.sendRedirect("useclassView.jsp");
  24. }
  25. %>
  26. </body>