<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="https://www.linuxidc.com/<%=basePath%>">
<title>登录界面</title>
</head>
<body>
<c:if test="${not empty param.login_error }">
<font color="red">
登录失败,请重试!<br/>
原因:<c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message }"></c:out>
</font>
</c:if>
<form action="/acegi1/j_spring_security_check" method="post">
username:<input type="text"/><br/>
password:<input type="password"/></br>
<input type="checkbox">两周内自动登录
<input type="submit" value="用户登录">
</form>
</body>
</html>