JSP博客网站系统,首页登录系统源代码
login.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="huc.blog.util.ParamUtils" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
String info = ParamUtils.getAttribute(request, "info", "");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>鍗氬鈥斺旂櫥褰?/title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
<CENTER>
<jsp:include page="common/indexheader.jsp" />
<FORM action="servlet/DoLogin" method="post">
<TABLE width="800" border="1" align="center" bordercolor="white" bgcolor="#E4EDFB">
<TR>
<TD colspan="2" align="center">鐢ㄦ埛鐧诲綍</TD>
</TR>
<TR>
<TD colspan="2" align="center"><FONT color="red" size="1"><%=info.equals("") ? "" : info%></FONT></TD>
</TR>
<TR>
<TD width="358" align="right">鐢ㄦ埛鍚?</TD>
<TD width="426"><INPUT type="text" name="userName" size="20"/></TD>
</TR>
<TR>
<TD align="right">鐢ㄦ埛瀵嗙爜:</TD>
<TD><INPUT type="password" name="userPass" size="20"/></TD>
</TR>
<TR>
<TD colspan="2" align="center">
<INPUT type="submit" name="loginButton" value="鐧诲綍" class="signinbtn1"/>
<INPUT type="reset" name="resetButton" value="閲嶅啓" class="signinbtn1"/>
<INPUT type="button" name="backButton" value="杩斿洖" class="signinbtn1" onclick="location.href='<%=basePath%>'"/>
</TD>
</TR>
</TABLE>
</FORM>
</CENTER>
<jsp:include page="common/footer.jsp" />
</body>
</html>