chakan111.jsp
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:1k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- <%@ page contentType="text/html; charset=GBK" %>
- <%@ page import="java.sql.*" %>
- <%@ page language="java" %>
- <%@ page import="java.util.*" %>
- <%@ page import="proj112.*" %>
- <jsp:useBean id="a" scope="page" class="proj112.dbconn"/>
- <html>
- <head>
- <title>
- chakan1_1_10
- </title>
- </head>
- <body bgcolor="#ffffff">
- <%
- String cj=request.getParameter("cj");
- String cj2=request.getParameter("cj2");
- String stu_id=(String)session.getAttribute("stu_id");
- String kechenghao=(String)session.getAttribute("kechenghao");
- String sql="";
- sql="update 成绩关联 set 成绩='"+cj+"',重修成绩='"+cj2+"' where stu_id='"+stu_id+"' and kch='"+kechenghao+"'";
- a.executeUpdate(sql);
- %>
- <script language="javascript">
- history.go(-2);
- history.go(0);
- </script>
- </body>
- </html>