sklxInsert.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:1k
源码类别:
Applet
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK"%>
- <%@ page import="java.sql.*"%>
- <% request.setCharacterEncoding("GB2312");%>
- <jsp:useBean id="sklxBean" class="MyFly.Bean.sklxBean" scope="request"/>
- <%
- String comName="";
- String address="";
- String telephone="";
- String mobile="";
- String chuanz="";
- String youb="";
- String email="";
- String qq="";
- String msn="";
- comName=request.getParameter("comName");
- address=request.getParameter("address");
- telephone=request.getParameter("telephone");
- mobile=request.getParameter("mobile");
- chuanz=request.getParameter("chuanz");
- youb=request.getParameter("youb");
- email=request.getParameter("email");
- qq=request.getParameter("qq");
- msn=request.getParameter("msn");
- sklxBean.setComName(comName);
- sklxBean.setAddress(address);
- sklxBean.setTelephone(telephone);
- sklxBean.setMobile(mobile);
- sklxBean.setChuanz(chuanz);
- sklxBean.setYoub(youb);
- sklxBean.setEmail(email);
- sklxBean.setQq(qq);
- sklxBean.setMsn(msn);
- if(sklxBean.addNew() == 1)
- {
- out.println("<script language=javascript>location.href='sklxView.jsp';</script>");
- }
- else
- {
- out.println("<Script language=JavaScript>alert('添加失败,请重新添加');JavaScript:history.back();</Script>");
- }
- %>