Project

General

Profile

« Previous | Next » 

Revision 1932

Added by brooke about 21 years ago

added JS to maintain ?name=value url params thru' redirect

View differences:

index.html
1
<!--
2
/**
3
 *  Does a redirect to jsp index page
4
 */
5
 -->
1
<!-- *  Does a redirect to jsp index page * -->
6 2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
7 3
<html>
8 4
<head>
9
<title> </title>
10 5
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
11
<meta http-equiv="refresh" content="0;URL=index.jsp">
6
<script language="JavaScript">
7
function doRedirectWithParams() {
8
  var fullURL = unescape(document.location);
9
  var start = fullURL.indexOf("?");
10
  var params = "";
11
  if (start > 0) params = fullURL.substring(start,fullURL.length);
12
  document.location.href="index.jsp" + params;
13
}
14
</script>
12 15
</head>
13
<body></body>
14
</html>
16
<body><script language="JavaScript">doRedirectWithParams()</script></body>
17
</html>

Also available in: Unified diff