1 / 15
文档名称:

jsp实验报告.doc

格式:doc   大小:77KB   页数:15页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

jsp实验报告.doc

上传人:tswng35 2022/2/9 文件大小:77 KB

下载得到文件列表

jsp实验报告.doc

文档介绍

文档介绍:-
. z.
Jsp实验报告
课程设计名称:兼职
<tablewidth="400"height="120"border="0"align="center">
<caption><spanclass="STYLE1">欢送登录***兼职</span></caption>
<tr><tdwidth="166">用户名:</td>
<tdwidth="318">
<inputname="username"type="te*t"id="username"></td></tr>
<tr>
<td>密码:</td>
<td><inputname="password"type="password"id="password"></td>
</tr>
<tr>
<tdcolspan="2"align="center">
<inputtype="submit"name="Submit"value="登录">
<inputtype="reset"name="Submit2"value="取消"></td>
</tr>
</table>
</form>
登录判断::
<body>
<% String user=("username");
String pass=("password");
-
. z.
(".");
Connection con = ("jdbc:mysql://localhost:3306/zy","root","root");
PreparedStatement ps =("select * from account where username=" and password="");
(1,user); (2,pass);
ResultSet rs = *ecuteQuery();
if(*t()){("");}
else (""); %>
</body>
信息列表::
<body>
<tdcolspan=3align=right><ahref="">进入查询界面</a></td>
<tdcolspan=2align=right><ahref="">退出</a></td>
<% (".");
Connection con = ("jdbc:mysql://localhost:3306/zy"user=root&password=root&useUnicode=true");
PreparedStatement ps =("select * from t_zhiye");
ResultSet rs = *ecuteQuery();
%>
<divwidth="98%"align="center">
-
. z.
<h2>所有信息</h2>
</div>
<tablewidth="98%"border="0"cellpadding="0"cellspacing="0">
<tralign="center"bgcolor="#e3F4F