Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Kolosowski2002-10-30 23:54:54 +0000
committerKonrad Kolosowski2002-10-30 23:54:54 +0000
commit33befdc8338b0f53ad47a85c95864135fd97fa0f (patch)
tree6337e72ee6405ed940c85f993b66465e3689731a /org.eclipse.help.webapp
parent594885b7c204acd889b0386e7a77334de83c31fd (diff)
downloadeclipse.platform.ua-33befdc8338b0f53ad47a85c95864135fd97fa0f.tar.gz
eclipse.platform.ua-33befdc8338b0f53ad47a85c95864135fd97fa0f.tar.xz
eclipse.platform.ua-33befdc8338b0f53ad47a85c95864135fd97fa0f.zip
redirecting to basic if no javascript
Diffstat (limited to 'org.eclipse.help.webapp')
-rw-r--r--org.eclipse.help.webapp/advanced/index.jsp3
-rw-r--r--org.eclipse.help.webapp/index.jsp5
2 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.help.webapp/advanced/index.jsp b/org.eclipse.help.webapp/advanced/index.jsp
index f61a76f73..dfc49a066 100644
--- a/org.eclipse.help.webapp/advanced/index.jsp
+++ b/org.eclipse.help.webapp/advanced/index.jsp
@@ -12,6 +12,9 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<noscript>
+<meta HTTP-EQUIV="REFRESH" CONTENT="0;URL=index.jsp?noscript=1">
+</noscript>
<title><%=WebappResources.getString("Help", request)%></title>
<jsp:include page="livehelp.js.jsp"/>
</head>
diff --git a/org.eclipse.help.webapp/index.jsp b/org.eclipse.help.webapp/index.jsp
index 0bc9945a0..097d19dff 100644
--- a/org.eclipse.help.webapp/index.jsp
+++ b/org.eclipse.help.webapp/index.jsp
@@ -6,6 +6,11 @@
<%
request.setCharacterEncoding("UTF-8");
+ if (request.getParameter("noscript") != null) {
+ request.getRequestDispatcher("/basic/index.jsp").forward(request, response);
+ return;
+ }
+
RequestData data = new RequestData(application,request);
if(data.isIE() || data.isMozilla()){
request.getRequestDispatcher("/advanced/index.jsp").forward(request, response);

Back to the top