A few minor bug fixes to the IdP ADFS support.
[java-idp.git] / webApplication / adfs.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="wreply" scope="request" class="java.lang.String" />
13     <jsp:useBean id="wa" scope="request" class="java.lang.String" />
14     <jsp:useBean id="wresult" 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>ADFS Authentication Request Processed</title>
22 </head>
23
24 <body onload="document.forms[0].submit()">
25
26 <% 
27         if (request.getAttribute("wa") == null
28                 || request.getAttribute("wreply").equals("")
29                 || request.getAttribute("wresult") == null) 
30         {
31                 request.setAttribute("requestURL", request.getRequestURI()); 
32                 request.setAttribute("errorText", "This page cannot be accessed directly"); 
33         request.getRequestDispatcher("/IdPError.jsp").forward(request, response);
34         }
35 %>
36
37 <h1>ADFS Authentication Request Processed</h1>
38
39 <script type="text/javascript">
40 <!--    
41 document.write("<p>You are automatically being redirected to the requested site. ");
42 document.write("If the browser appears to be hung up after 15-20 seconds, try reloading ");
43 document.write("the page before contacting the technical support staff in charge of the ");
44 document.write("desired resource or service you are trying to access.</p>");
45 document.write("<h2>Redirecting to requested site...</h2>");
46 // -->
47 </script>
48
49 <noscript>
50 <p>
51 <strong>Note:</strong> Since your browser does not support JavaScript, you must press the
52 Continue button once to proceed to the requested site.
53 </p>
54 </noscript>
55
56
57 <form id="adfs"  action="<bean:write name="wreply"/>" method="post">
58 <div>
59 <input type="hidden" name="wa" value="<bean:write name="wa" />" />
60 <logic:present name="wctx" scope="request">
61         <input type="hidden" name="wctx" value="<bean:write name="wctx" />" />
62 </logic:present>
63 <input type="hidden" name="wresult" value="<bean:write name="wresult" />" />
64 </div>
65 <noscript>
66 <div>
67 <input type="submit" value="Continue" />
68 </div>
69 </noscript>
70
71 </form>
72 </body>
73 </html>