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

noreply at shibboleth.net noreply at shibboleth.net
Sat May 10 05:48:56 EDT 2014


Author: rdw
Date: Sat May 10 05:48:56 2014
New Revision: 220

URL: http://svn.shibboleth.net/view/java-idp-testbed?rev=220&view=rev
Log:
IDP-245 Resuscitate JSP logn pages

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=220&r1=219&r2=220&view=diff
==============================================================================
--- trunk/src/main/webapp/WEB-INF/idp/jsp/login.jsp (original)
+++ trunk/src/main/webapp/WEB-INF/idp/jsp/login.jsp Sat May 10 05:48:56 2014
@@ -5,7 +5,6 @@
 <%@ page import="net.shibboleth.utilities.java.support.codec.HTMLEncoder" %>
 
 <%
-HTMLEncoder encoder = (HTMLEncoder) request.getAttribute("encoder");
 AuthenticationErrorContext authenticationErrorContext = (AuthenticationErrorContext) request.getAttribute("authenticationErrorContext");
 AuthenticationWarningContext authenticationWarningContext = (AuthenticationWarningContext) request.getAttribute("authenticationWarningContext");
 %>
@@ -13,18 +12,18 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <body>
     
-    	<h2>Testbed Login</h2>
+    	<h2>Testbed JSP Login</h2>
         
 <% if ( authenticationErrorContext != null && !authenticationErrorContext.getExceptions().isEmpty()) { %>
-		<p>ERROR: <%= encoder.encodeForHTML(authenticationErrorContext.getExceptions().get(0).getMessage()) %></p>
+		<p>ERROR: <%= HTMLEncoder.encodeForHTML(authenticationErrorContext.getExceptions().get(0).getMessage()) %></p>
 <% } %>
 
 <% if ( authenticationErrorContext != null && !authenticationErrorContext.getClassifiedErrors().isEmpty()) { %>
-        <p>Classified errors: <%= encoder.encodeForHTML(authenticationErrorContext.getClassifiedErrors().toString()) %></p>
+        <p>Classified errors: <%= HTMLEncoder.encodeForHTML(authenticationErrorContext.getClassifiedErrors().toString()) %></p>
 <% } %>
 
 <% if ( authenticationWarningContext != null && !authenticationWarningContext.getClassifiedWarnings().isEmpty()) { %>
-        <p>Classified warnings: <%= encoder.encodeForHTML(authenticationWarningContext.getClassifiedWarnings().toString()) %></p>
+        <p>Classified warnings: <%= HTMLEncoder.encodeForHTML(authenticationWarningContext.getClassifiedWarnings().toString()) %></p>
 <% } %>
         
         <form action="<%= request.getAttribute("flowExecutionUrl") %>" method="post">



More information about the commits mailing list