svn-gvsig-desktop / tmp / trunk / servidor / WPS_Callejero_Server / wps / WebContent / wpslogin.jsp @ 26650
History | View | Annotate | Download (1.59 KB)
1 |
<!-- Web-App deployment schema 2.3 < % @ taglib prefix = ' c ' uri = ' http://java.sun.com/jstl/core ' % > --> |
---|---|
2 |
<!-- Following Web-App deployment schema 2.4 --> |
3 |
<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %> |
4 |
|
5 |
<%@ page import="org.acegisecurity.ui.AbstractProcessingFilter" %> |
6 |
<%@ page import="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter" %> |
7 |
<%@ page import="org.acegisecurity.AuthenticationException" %> |
8 |
|
9 |
<html> |
10 |
<head> |
11 |
<title>Login</title> |
12 |
</head> |
13 |
|
14 |
<body> |
15 |
<img src="images/wps-spring-plugin.gif"> |
16 |
<h1>Login</h1> |
17 |
|
18 |
<%-- this form-login-page form is also used as the |
19 |
form-error-page to ask for a login again. |
20 |
--%> |
21 |
<c:if test="${not empty param.login_error}"> |
22 |
<font color="red"> |
23 |
Your login attempt was not successful, try again.<BR><BR> |
24 |
Reason: <%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> |
25 |
</font> |
26 |
</c:if> |
27 |
|
28 |
<form action="<c:url value='j_acegi_security_check'/>" method="POST"> |
29 |
<table> |
30 |
<tr><td>User:</td><td><input type='text' name='j_username' <c:if test="${not empty param.login_error}">value='<%= session.getAttribute(AuthenticationProcessingFilter.ACEGI_SECURITY_LAST_USERNAME_KEY) %>'</c:if>></td></tr> |
31 |
<tr><td>Password:</td><td><input type='password' name='j_password'></td></tr> |
32 |
|
33 |
<tr><td colspan='2'><input name="submit" type="submit"></td></tr> |
34 |
<tr><td colspan='2'><input name="reset" type="reset"></td></tr> |
35 |
</table> |
36 |
|
37 |
</form> |
38 |
|
39 |
</body> |
40 |
</html> |