Updated some labels/titles.
[java-idp.git] / webApplication / IdP.jsp
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3     
4     <%
5                 response.setHeader("Expires","19-Mar-1971 08:23:00 GMT");
6                 response.setHeader("Cache-control","no-cache");
7                 response.setHeader("Pragma","no-cache");
8         %>
9     <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
10     <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
11
12     <jsp:useBean id="shire" scope="request" class="java.lang.String" />
13     <jsp:useBean id="target" scope="request" class="java.lang.String" />
14     <jsp:useBean id="assertion" scope="request" class="java.lang.String" />
15     <jsp:useBean id="hs_helpText" scope="application" class="java.lang.String"/>
16     <jsp:useBean id="hs_detailedHelpURL" scope="application" class="java.lang.String"/>
17         
18 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
19 <head>
20     <link rel="stylesheet" type="text/css" href="main.css" />
21     <title>Shibboleth Authentication Request Processed</title>
22 </head>
23
24 <body onload="document.forms[0].submit()">
25
26 <% 
27         if (request.getAttribute("shire") == null
28                 || request.getAttribute("shire").equals("")
29                 || request.getAttribute("target") == null
30                 || request.getAttribute("target").equals("")
31                 || request.getAttribute("assertion") == null
32                 || request.getAttribute("assertion").equals("")) 
33         {
34                 request.setAttribute("requestURL", request.getRequestURI()); 
35                 request.setAttribute("errorText", "This page cannot be accessed directly"); 
36         request.getRequestDispatcher("/IdPError.jsp").forward(request, response);
37         }
38 %>
39
40 <h1>Shibboleth Authentication Request Processed</h1>
41
42 <script type="text/javascript">
43 <!--    
44 document.write("<p>You are automatically being redirected to the requested site. ");
45 document.write("If the browser appears to be hung up after 15-20 seconds, try reloading ");
46 document.write("the page before contacting the technical support staff in charge of the ");
47 document.write("desired resource or service you are trying to access.</p>");
48 document.write("<h2>Redirecting to requested site...</h2>");
49 // -->
50 </script>
51
52 <noscript>
53 <p>
54 <strong>Note:</strong> Since your browser does not support JavaScript, you must press the
55 Continue button once to proceed to the requested site.
56 </p>
57 </noscript>
58
59
60 <form id="shibboleth"  action="<bean:write name="shire"/>" method="post">
61 <div>
62 <input type="hidden" name="TARGET" value="<bean:write name="target" />" />
63 <input type="hidden" name="SAMLResponse" value="<bean:write name="assertion" />" />
64 </div>
65 <noscript>
66 <div>
67 <input type="submit" value="Continue" />
68 </div>
69 </noscript>
70
71 </form>
72 </body>
73 </html>