Updated HS form to xhtml 1.1. Fixed several validation problems.
[java-idp.git] / webApplication / wayf.jsp
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
3         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html>
5 <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
6         <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
7         <jsp:useBean id="originsets" scope="application" class="edu.internet2.middleware.shibboleth.wayf.OriginSet[]"/>
8         <jsp:useBean id="requestURL" scope="request" class="java.lang.String"/>
9         <jsp:useBean id="helpText" scope="application" class="java.lang.String"/>
10         <jsp:useBean id="supportContact" scope="application" class="java.lang.String"/>
11         <jsp:useBean id="shire" scope="request" class="java.lang.String"/>
12         <jsp:useBean id="target" scope="request" class="java.lang.String"/>
13         <jsp:useBean id="encodedShire" scope="request" class="java.lang.String"/>
14         <jsp:useBean id="encodedTarget" scope="request" class="java.lang.String"/>
15         <jsp:useBean id="searchResultEmptyText" scope="application" class="java.lang.String"/>
16         <jsp:useBean id="logoLocation" scope="application" class="java.lang.String"/>
17         <logic:present name="searchresults" scope="request">
18                 <jsp:useBean id="searchresults" scope="request" class="edu.internet2.middleware.shibboleth.wayf.Origin[]"/>
19         </logic:present>
20 <head>
21                 <link rel="stylesheet" title="normal" type="text/css" href="wayf.css" /><title>InCommon: Identity Provider Selection</title></head>
22         <body>
23
24                 <div class="head">
25                         <h1>Select an identity provider</h1>
26                 </div>
27
28                 <div class="selector">
29                         <p class="text"><bean:write name="helpText" /></p>
30
31                         <div class="list">
32
33                                 <h2>Choose from a list:</h2>
34                                 <logic:iterate id="originset" name="originsets">
35                                 <form method="get" action="<bean:write name="requestURL" />">
36                                         <p>
37                                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
38                                         <input type="hidden" name="target" value="<bean:write name="target" />" />
39                                         <input type="hidden" name="action" value="selection" />
40                                         <select name="origin">  
41                                                 <logic:iterate id="origin" name="originset" property="origins">
42                                                         <option value="<jsp:getProperty name="origin" property="name" />">
43                                                                 <jsp:getProperty name="origin" property="displayName" />
44                                                         </option>
45                                                 </logic:iterate>
46                                         </select>
47                                                 <input type="submit" value="Select" />
48                                                 <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
49                                                 </p>
50                                         </form>
51                                         </logic:iterate>
52
53                                 </div>
54                                 <div class="search">
55                                 <span class="option">or</span>
56                                 <h2>Search by keyword:</h2>
57
58                                         <form method="get" action="<bean:write name="requestURL" />">
59                                                 <p>
60                                                         <input type="hidden" name="shire" value="<bean:write name="shire" />" />
61                                                         <input type="hidden" name="target" value="<bean:write name="target" />" />
62                                                         <input type="hidden" name="action" value="search" />
63                                                         <input type="text" name="string" />
64                                                         <input type="submit" value="Search" />
65                                                 </p>
66                                         </form>
67                                         <logic:present name="searchResultsEmpty" scope="request">
68                                                 <p class="error"><bean:write name="searchResultEmptyText" /></p>
69                                         </logic:present>
70                                         <logic:present name="searchresults" scope="request">
71                                                 <h3>Search results:</h3>
72                                                 <form method="get" action="<bean:write name="requestURL" />">
73                                                         <ul>
74                                                         <logic:iterate id="currResult" name="searchresults">
75                                                                 <li>
76                                                                 <input type="radio" name="origin" value="<jsp:getProperty name="currResult" property="name" />" /><jsp:getProperty name="currResult" property="displayName" />
77                                                                 </li>
78                                                         </logic:iterate>
79                                                         </ul>
80                                                         <p>
81                                                                 <input type="hidden" name="shire" value="<bean:write name="shire" />" />
82                                                                 <input type="hidden" name="target" value="<bean:write name="target" />" />
83                                                                 <input type="hidden" name="action" value="selection" />
84                                                                 <input type="submit" value="Select" />
85                                                                 <input type="checkbox" checked="checked" name="cache" value="TRUE" /><span class="warning">Remember my selection on this computer.</span>
86                                                         </p>
87                                                 </form> 
88                                         </logic:present>
89
90                                 </div>
91                         </div>
92                         <div class="footer">
93
94                                 <p class="text">Need assistance? Send mail to <a href="mailto:shib-test@internet2.edu">shib-test@internet2.edu</a> with description.</p>
95                                 <div class="logo"><img src="./images/incommon.gif" alt="InCommon" /></div>
96                         </div>
97                         
98         </body></html>