[java-idp-testbed COMMIT] /trunk/src/main/webapp/WEB-INF/idp/jsp/login.jsp

noreply at shibboleth.net noreply at shibboleth.net
Tue Apr 15 15:58:58 EDT 2014


Author: scantor
Date: Tue Apr 15 15:58:58 2014
New Revision: 183

URL: http://svn.shibboleth.net/view/java-idp-testbed?rev=183&view=rev
Log:
Adjust some object names.

Modified:
    trunk/src/main/webapp/WEB-INF/idp/jsp/login.jsp

Modified: trunk/src/main/webapp/WEB-INF/idp/jsp/login.jsp
URL: http://svn.shibboleth.net/view/java-idp-testbed/trunk/src/main/webapp/WEB-INF/idp/jsp/login.jsp?rev=183&r1=182&r2=183&view=diff
==============================================================================
--- trunk/src/main/webapp/WEB-INF/idp/jsp/login.jsp (original)
+++ trunk/src/main/webapp/WEB-INF/idp/jsp/login.jsp Tue Apr 15 15:58:58 2014
@@ -5,8 +5,9 @@
 <%@ page import="org.owasp.esapi.Encoder" %>
 
 <%
-Encoder encoder = (Encoder) request.getAttribute("esapiEncoder");
+Encoder encoder = (Encoder) request.getAttribute("encoder");
 AuthenticationErrorContext authenticationErrorContext = (AuthenticationErrorContext) request.getAttribute("authenticationErrorContext");
+AuthenticationWarningContext authenticationWarningContext = (AuthenticationWarningContext) request.getAttribute("authenticationWarningContext");
 %>
 
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
@@ -21,6 +22,10 @@
 <% if ( authenticationErrorContext != null && !authenticationErrorContext.getClassifiedErrors().isEmpty()) { %>
         <p>Classified errors: <%= encoder.encodeForHTML(authenticationErrorContext.getClassifiedErrors().toString()) %></p>
 <% } %>
+
+<% if ( authenticationWarningContext != null && !authenticationWarningContext.getClassifiedWarnings().isEmpty()) { %>
+        <p>Classified warnings: <%= encoder.encodeForHTML(authenticationWarningContext.getClassifiedWarnings().toString()) %></p>
+<% } %>
         
         <form action="<%= request.getAttribute("flowExecutionUrl") %>" method="post">
             Username: <input type="text" name="username" value=""/> <br/>



More information about the commits mailing list