学习论坛 会员投稿 RSS订阅 站内通告:
搜索: 您的位置网站源代码 > 网络编程 > jsp教程 > 在JavaBean中连接数据库(5)

在JavaBean中连接数据库(5)

2009-10-11 23:04:21 来源:原创 【 】 浏览:
摘要: td img src=images/03.gif width=56 height=47 alt=/td td colspan=3 width=117 height=47 background=images/04.gifinput name=name type=text size=10 !--img src=images/04.gif width=117 height=47 alt=--/td td

<td>
<img src="images/03.gif" width="56" height="47" alt=""></td>
<td colspan="3" width="117" height="47" background="images/04.gif"><input name="name" type="text" size="10">
<!--img src="images/04.gif" width="117" height="47" alt=""--></td>
<td>
<img src="images/05.gif" width="104" height="47" alt=""></td>
</tr>
<tr>
<td>
<img src="images/06.gif" width="56" height="43" alt=""></td>
<td colspan="3" width="117" height="43"><input name="password" type="password" size="11">
<!--img src="images/07.gif" width="117" height="43" alt=""--></td>
<td>
<img src="images/08.gif" width="104" height="43" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/09.gif" width="56" height="47" alt=""></td>
<td>
<img src="images/10.gif" alt="" width="52" height="25" border="0" usemap="#Map" ></td>
<td>
<img src="images/11.gif" width="9" height="25" alt=""></td>
<td>
<img src="images/12.gif" alt="" width="56" height="25" border="0" usemap="#Map2"></td>
<td>
<img src="images/13.gif" width="104" height="25" alt=""></td>
</tr>
<tr>
<td colspan="4">
<img src="images/14.gif" width="221" height="22" alt=""></td>
</tr>
<tr>
<td colspan="6">
<img src="images/15.gif" width="407" height="29" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->
<div align="center">
<map name="Map">
<area shape="rect" coords="1,1,51,25" href="#" onClick="return check();">
</map>
<map name="Map2">
<area shape="rect" coords="2,1,52,25" href="#" onClick="reset();">
</map>
<%
if(request.getParameter("name")!=null){
%>
<span class="style3">
<jsp:setProperty name="myBean" property="*"/>
<span class="style4">用户名为
<jsp:getProperty name="myBean" property="name"/>
登录
<br>
<%
if(myBean.check()){
out.println("验证成功");
out.println(myBean.getName()+"欢迎光临");
}
else
out.println("用户名、密码输入错误");
%>
</span></span>
<%} %><br>
</div>
</body>
</html>
WEB-INF\ web.xml完整代码
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

顶一下
(0)
0%
踩一下
(0)
0%
Tags: 网络编程 jsp教程
责任编辑:小人物
收藏】 【挑错】 【推荐】 【打印
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片
关于我们 | 网站声明 | 广告服务 | 招聘英才 | 联系我们 | 网站地图 | RSS订阅 |