From 4f6b4e4bfd2e312c9d0ebc228af4b45a9c9658f2 Mon Sep 17 00:00:00 2001 From: Luke Taylor Date: Thu, 15 May 2008 12:48:13 +0000 Subject: [PATCH] Make sample login pages use c:out for data output --- samples/contacts/src/main/webapp/login.jsp | 6 +++--- samples/openid/src/main/webapp/openidlogin.jsp | 5 +++-- samples/tutorial/src/main/webapp/login.jsp | 10 +++++----- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/samples/contacts/src/main/webapp/login.jsp b/samples/contacts/src/main/webapp/login.jsp index 8a9ca679a2..ceded0bf91 100644 --- a/samples/contacts/src/main/webapp/login.jsp +++ b/samples/contacts/src/main/webapp/login.jsp @@ -27,14 +27,14 @@ --%> - Your login attempt was not successful, try again.

- Reason: <%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> + Your login attempt was not successful, try again.

+ Reason: .
- + diff --git a/samples/openid/src/main/webapp/openidlogin.jsp b/samples/openid/src/main/webapp/openidlogin.jsp index 71c4c5615c..819caad698 100644 --- a/samples/openid/src/main/webapp/openidlogin.jsp +++ b/samples/openid/src/main/webapp/openidlogin.jsp @@ -17,13 +17,14 @@ Your login attempt was not successful, try again.

- Reason: <%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> + Reason: .
+
User:value='<%= session.getAttribute(AuthenticationProcessingFilter.SPRING_SECURITY_LAST_USERNAME_KEY) %>'>
User:
Password:
Don't ask for my password for two weeks
- + diff --git a/samples/tutorial/src/main/webapp/login.jsp b/samples/tutorial/src/main/webapp/login.jsp index d752d3975e..644d4081b3 100644 --- a/samples/tutorial/src/main/webapp/login.jsp +++ b/samples/tutorial/src/main/webapp/login.jsp @@ -24,16 +24,16 @@ <%-- this form-login-page form is also used as the form-error-page to ask for a login again. --%> - <% if (session.getAttribute(AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY) != null) { %> + - Your login attempt was not successful, try again.

- Reason: <%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %> + Your login attempt was not successful, try again.

+ Reason: .
- <% } %> +
OpenID Identity:value='<%= session.getAttribute(AuthenticationProcessingFilter.SPRING_SECURITY_LAST_USERNAME_KEY) %>'>
OpenID Identity:
- +
User:value='<%= session.getAttribute(AuthenticationProcessingFilter.SPRING_SECURITY_LAST_USERNAME_KEY) %>'<% } %>>
User:
Password:
Don't ask for my password for two weeks