sklxInsert.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="sklxBean" class="MyFly.Bean.sklxBean" scope="request"/>
  5. <%
  6.    String comName="";
  7.    String address="";
  8.    String telephone="";
  9.    String mobile="";
  10.    String chuanz="";
  11.    String youb="";
  12.    String email="";
  13.    String qq="";
  14.    String msn="";
  15.    
  16.         comName=request.getParameter("comName");
  17. address=request.getParameter("address");
  18. telephone=request.getParameter("telephone");
  19. mobile=request.getParameter("mobile");
  20. chuanz=request.getParameter("chuanz");
  21. youb=request.getParameter("youb");
  22. email=request.getParameter("email");
  23. qq=request.getParameter("qq");
  24. msn=request.getParameter("msn");
  25. sklxBean.setComName(comName);
  26. sklxBean.setAddress(address);
  27. sklxBean.setTelephone(telephone);
  28. sklxBean.setMobile(mobile);
  29. sklxBean.setChuanz(chuanz);
  30. sklxBean.setYoub(youb);
  31. sklxBean.setEmail(email);
  32. sklxBean.setQq(qq);
  33. sklxBean.setMsn(msn);
  34. if(sklxBean.addNew() == 1)
  35. {
  36.      out.println("<script language=javascript>location.href='sklxView.jsp';</script>");
  37.  
  38. }
  39. else
  40. {
  41.    out.println("<Script language=JavaScript>alert('添加失败,请重新添加');JavaScript:history.back();</Script>");
  42. }
  43. %>