summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-07-29 00:37:28 +0200
committerLeif Johansson <leifj@sunet.se>2011-07-29 00:37:28 +0200
commit7cb7140d2b0abbe0b93f8159ddf7280b0d37492e (patch)
treeba841d689410bcce0c0906fb954e2ba29da9a202 /src
parent7a9f95b3ac339af89f4ce71ceb45ba46b9fa3fc1 (diff)
sitelist a set
Diffstat (limited to 'src')
-rw-r--r--src/main/webapp/wayf-ndn.jsp22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/main/webapp/wayf-ndn.jsp b/src/main/webapp/wayf-ndn.jsp
index b96282c..5a6dc79 100644
--- a/src/main/webapp/wayf-ndn.jsp
+++ b/src/main/webapp/wayf-ndn.jsp
@@ -2,6 +2,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ page import="java.util.*" %>
<html>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
@@ -10,6 +11,7 @@
<%request.setCharacterEncoding("UTF-8");%>
<%response.setCharacterEncoding("UTF-8");%>
+
<logic:present name="showComments" scope="Request">
<!-- TO CONFIGURE THIS FOR A SPECIFIC SITE
@@ -288,7 +290,19 @@
</style>
</head>
-<body>
+<logic:present name="cookieList" scope="request">
+<%!
+ java.util.HashSet cl = new HashSet();
+%>
+
+<logic:iterate id="site" name="cookieList">
+ <%!
+ cl.add(site);
+ %>
+</logic:iterate>
+
+<logic:present>
+
<body id="homepage">
<div id="wrapper">
@@ -320,11 +334,11 @@
<p class="text">The service you are trying to use require that you identify yourself. Please select your identity provider below...</p>
<ul class="ilist">
- <logic:present name="cookieList" scope="request">
+ <logic:present name="cl" scope="request">
<li style="veritcal-align: top;">
<h2>Recently Used</h2>
<ul class="sitelist" style="margin-bottom: 50px;">
- <logic:iterate id="site" name="cookieList">
+ <logic:iterate id="site" name="cl">
<li><a tabindex="10" href="#<jsp:getProperty name="site" property="name"/>"><jsp:getProperty name="site" property="displayName"/></a></li>
</logic:iterate>
</ul>
@@ -345,7 +359,7 @@
<input tabindex="20" type="submit" value="Clear List" />
</form>
</li>
- <li style="vertical-align: top; border-right: 1px solid #CECECE; min-height: 300px; padding-right: 20px; padding-left: 20px;">&nbsp;</li>
+ <li style="vertical-align: top; border-right: 1px solid #CECECE; min-height: 300px; margin-right: 20px; padding-left: 20px;">&nbsp;</li>
</logic:present>
<li style="vertical-align: top;">
<h2>Full list of identity providers</h2>