Omit continue button for script-enabled browsers.
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 15 Dec 2002 06:15:09 +0000 (06:15 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sun, 15 Dec 2002 06:15:09 +0000 (06:15 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@376 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

webApplication/hs.jsp

index 497a463..3405c52 100755 (executable)
@@ -6,21 +6,21 @@ response.setHeader("Pragma","no-cache");
 
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html 
 
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html 
-       PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
-       "DTD/xhtml1-strict.dtd">
-       <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
-       <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
-       
-       <jsp:useBean id="shire" scope="request" class="java.lang.String" />
-       <jsp:useBean id="target" scope="request" class="java.lang.String" />
-       <jsp:useBean id="assertion" scope="request" class="java.lang.String" />
-       <jsp:useBean id="hs_helpText" scope="application" class="java.lang.String"/>
-       <jsp:useBean id="hs_detailedHelpURL" scope="application" class="java.lang.String"/>
+PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
+    "DTD/xhtml1-strict.dtd">
+    <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
+    <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
+
+    <jsp:useBean id="shire" scope="request" class="java.lang.String" />
+    <jsp:useBean id="target" scope="request" class="java.lang.String" />
+    <jsp:useBean id="assertion" scope="request" class="java.lang.String" />
+    <jsp:useBean id="hs_helpText" scope="application" class="java.lang.String"/>
+    <jsp:useBean id="hs_detailedHelpURL" scope="application" class="java.lang.String"/>
        
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
        
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
-       <link rel="stylesheet" type="text/css" href="main.css" />
-       <title>Shibboleth Handle Request Processed</title>
+    <link rel="stylesheet" type="text/css" href="main.css" />
+    <title>Shibboleth Handle Request Processed</title>
 </head>
 
 <body onLoad="document.forms[0].submit()">
 </head>
 
 <body onLoad="document.forms[0].submit()">
@@ -29,22 +29,28 @@ response.setHeader("Pragma","no-cache");
 
 <!-- <p><bean:write name="hs_helpText" /></p> -->
 
 
 <!-- <p><bean:write name="hs_helpText" /></p> -->
 
-<p>You are automatically being redirected to the requested site. Please wait
-a few seconds before pressing the Continue button, if the browser appears to
-be hung up.</p>
+<script language="JavaScript">
+<!--
+document.write("<p>You are automatically being redirected to the requested site. ");
+document.write("If the browser appears to be hung up after 15-20 seconds, try reloading ");
+document.write("the page before contacting the technical support staff in charge of the ");
+document.write("desired resource or service you are trying to access.</p>");
+document.write("<h2>Redirecting to requested site...</h2>");
+// -->
+</script>
 
 <noscript>
 
 <noscript>
-<blockquote>
-<b>Note:</b> Since you have disabled JavaScript in your browser, you must press the
+<b>Note:</b> Since your browser does not support JavaScript, you must press the
 Continue button once to proceed to the requested site.
 Continue button once to proceed to the requested site.
-</blockquote>
 </noscript>
 
 <p align="center">
 </noscript>
 
 <p align="center">
-<form name="shib"  action="<bean:write name="shire" />" method="POST">
+<form name="shib"  action="<bean:write name="shire"/>" method="POST">
 <input type="hidden" name="TARGET" value="<bean:write name="target" />">
 <input type="hidden" name="SAMLResponse" value="<bean:write name="assertion" />">
 <input type="hidden" name="TARGET" value="<bean:write name="target" />">
 <input type="hidden" name="SAMLResponse" value="<bean:write name="assertion" />">
+<noscript>
 <input type="submit" value="Continue">
 <input type="submit" value="Continue">
+</noscript>
 </form>
 </p>
 <!--
 </form>
 </p>
 <!--