-------login.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content="text/html;
charset=gb2312" http-equiv=Content-Type><LINK
href="inc/Tax.css" rel=stylesheet>
<SCRIPT language=javascript>
<!--
function checkinput()
{
if (document.login.username.value=="")
{
alert("请输入您的用户名!");
document.login.username.focus();
return false;
}
if (document.login.password.value=="")
{
alert("请输入您的密码!");
document.login.password.focus();
return false;
}
return true;
}
//-->
</SCRIPT>
<%
///写你要验证的jsp的代码
%>
<BODY bgColor=#ffffff scroll=no>
<TABLE border=0 cellPadding=0 cellSpacing=0 height="90%" width="100%">
<TBODY>
<TR>
<TD>
<TABLE align=center border=2 borderColorDark=#9999ff
borderColorLight=#ffffff cellPadding=0 cellSpacing=0 width="678">
<TBODY>
<TR bgColor=#9999ff>
<TD height=20 width="672">
<DIV align=center><FONT color=#ffffff
size=4>管理员登录界面</FONT></DIV></TD></TR>
<TR>
<TD width="672">
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width="100%">
<TBODY>
<TR>
<TD colSpan=2 height=30>
<DIV align=center></DIV></TD></TR>
<FORM action="login.jsp" method=post name=login
onsubmit="return checkinput();">
<TR>
<TD height=30 width="42%">
<DIV align=right>用户名:</DIV></TD>
<TD height=30 width="58%"><INPUT maxLength=20 name=username
size=20> </TD></TR>
<TR>
<TD height=30 width="42%">
<DIV align=right>密码:</DIV></TD>
<TD height=30 width="58%"><INPUT maxLength=20 name=password
size=20 type=password> </TD></TR>
<TR>
<TD colSpan=2>
<DIV align=right>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="96%">
<TBODY>
<TR>
<TD align=right height=30 width="50%"><INPUT name=B1 type=submit value=" 登录 "> </TD>
<TD height=30 width="50%"><INPUT name=B2 type=reset value=" 重写 ">
</TD></TR></TBODY></TABLE></DIV></TD></TR></FORM>
<TR>
<TD colSpan=2 height=30>
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR>
<TD height=30 width="50%">
<DIV align=center><A class=font9bg3
href="#">使用帮助</A>
</DIV></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD colSpan=2 height=20>&nbsp;</TD></TR>
<TR>
<TD colSpan=2 height=30>
<DIV align=center>如有意见和建议,请E-mail至 <A class=font9bg3
href="mailto
d_syw@huabo.net">mailto
d_syw@huabo.net</A></DIV></TD></TR>
<TR>
<TD colSpan=2 height=30>
<DIV align=center>建议使用 IE5.0
进行浏览,最佳显示800*600</DIV></TD></TR></TBODY></TABLE></TD></TR>
<TR bgColor=#9999ff>
<TD
height=2 width="672">&nbsp;</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>