代码改变世界

开学第一次考试感想

2019-03-03 22:21  一念永恒s  阅读(536)  评论(0)    收藏  举报

介于假期的不间断学习虽说弄好了记账本,但是java  web没怎么复习和学习,所以导致在开学的考试的时候成绩并不是很理想,所以说学无止境,在以后的时间里要抓紧学习和复习以前的知识。一下是这次考试后完成的部分内容,因为实力问题所以完成的不是很多,请见谅。

 1 <%@ page language="java" contentType="text/html; charset=utf-8"
 2     pageEncoding="utf-8"%>
 3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 4 <html>
 5 <head>
 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 7 <link rel="stylesheet" type="text/css" href="css/style.css"/>
 8 <title>Insert title here</title>
 9 </head>
10 <body>
11 <form action="zhuce_result.jsp" name="login" method="post">
12       用户姓名<input type="text" size=20 name ="name"><br/>
13       <br/>
14         密码   <input type="text" size=26 name="password1"><br/> 
15       <br/>
16     重复密码  <input type="text" size=20 name="password2"><br/>
17       <br/>
18       手机号码<input type="text" size=20 name="number"><br/> 
19       <br/>
20       所属单位 <input type="text" size=20 name="house"><br/> 
21       <br/>
22       <input type="submit" value="注册">
23 </form>
24 </body>
25 </html>
26 <%@ page language="java" contentType="text/html; charset=utf-8"
27     pageEncoding="utf-8"%>
28 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
29 <html>
30 <head>
31 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
32 <title>Insert title here</title>
33 </head>
34 <body>
35 <% request.setCharacterEncoding("utf-8"); %>
36 <jsp:useBean id="Shuju" class="model.Shuju"> </jsp:useBean>
37 <jsp:setProperty property="*" name="Shuju"/>
38 <jsp:useBean id="stuServer" class="service.Jh"></jsp:useBean>
39 <%
40 if(stuServer.addStu(Shuju))
41     out.print("注册成功");
42 else
43     out.print("注册失败");
44 %>
45 </body>
46 </html>
47 <%@ page language="java" contentType="text/html; charset=utf-8"
48     pageEncoding="utf-8"%>
49 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
50 <html>
51 <head>
52 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
53 <title>Insert title here</title>
54 </head>
55 <body>
56 <a href="t.jsp" target=",login。html">新添学生基本信息</a><br/>
57 <a href="xgxs.jsp" target=",login.html">修改学生基本信息</a><br/>
58 </body>
59 </html>