摘要: 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">

RSS订阅






