newinfo_do.jsp
资源名称:bangong.rar [点击查看]
上传用户:dlqqsh
上传日期:2021-11-13
资源大小:7840k
文件大小:1k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=GBK" import="java.sql.*,java.lang.*" buffer="64kb" %>
- <%request.setCharacterEncoding("gbk"); %>
- <html>
- <head>
- <title>
- newarticle_do
- </title>
- </head>
- <jsp:useBean id="sql" scope="page" class="control.sqlcontrol" />
- <body bgcolor="#ffffff">
- <%try{
- sql.getSQL2005conn("dbconfig.xml");
- String title = request.getParameter("title");
- String usersid = request.getParameter("usersid");
- String context = request.getParameter("context");
- String isread = "no";
- String depar = request.getParameter("depar");
- String date = request.getParameter("time1");
- StringBuffer getselect = new StringBuffer();
- getselect.append("insert into perinfo(");
- getselect.append("usersid,");
- getselect.append("depar,");
- getselect.append("title,");
- getselect.append("date,");
- getselect.append("context,");
- getselect.append("isread) values (");
- getselect.append("'"+usersid+"','"+depar+"','"+title+"','"+date+"','"+context+"','"+isread+"');");
- String select = getselect.toString();
- sql.MouChoose(select);
- sql.closeDB();
- }catch(Exception ex){
- ex.printStackTrace();
- }
- %>
- <div align="center">
- <h3>被忘录添加完毕,请进行其他操作!</h3><hr>
- <a href="newinfo.jsp">继续添加</a>
- </div>
- </body>
- </html>