下面为该页面的内容:
<%@ page contentType="text/html; charset=GBK" %>
<html><head><title>在Tomcat中采用Form验证方式实现的安全Web应用程序的登录页</title>
</head><body bgcolor="#ffffff">
<form method="post" name="Login"action="j_security_check">
<table width="500" border="1" align="center"> <tr>
<td colspan="2"> <div align="center"><strong>在Tomcat中采用</strong><strong>基于表单的安全验证的登录表单</strong> </div></td> </tr>
<tr><td width="224"><div align="right">用户名称:</div></td>
<td width="260"><input type="text"name="j_username"></td> </tr>
<tr> <td><div align="right">密码:</div></td>
<td><input type="password"name="j_password"></td>
</tr>
<tr><td><div align="right"><input type="submit" name="Submit" value="提交">
</div></td> <td><input type="reset" name="Submit2" value="重置"></td>
</tr></table></form></body></html>
(3)修改web.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "">
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-27620-21.html
下决心挽回面子
你也不用再这混淆视听