Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Kolosowski2004-04-15 19:34:42 +0000
committerKonrad Kolosowski2004-04-15 19:34:42 +0000
commit81e14a87090f84b1b8b042f4294c2b89a5e6ff5d (patch)
tree536f87bc5882d9c7ed0b7d70b489cb6ae0e07c8a
parent6d987908f3d892c3baff00736f1ad5335ea821ad (diff)
downloadeclipse.platform.ua-81e14a87090f84b1b8b042f4294c2b89a5e6ff5d.tar.gz
eclipse.platform.ua-81e14a87090f84b1b8b042f4294c2b89a5e6ff5d.tar.xz
eclipse.platform.ua-81e14a87090f84b1b8b042f4294c2b89a5e6ff5d.zip
bidi support
-rw-r--r--org.eclipse.help.webapp/advanced/err.jsp14
-rw-r--r--org.eclipse.help.webapp/basic/err.jsp14
2 files changed, 24 insertions, 4 deletions
diff --git a/org.eclipse.help.webapp/advanced/err.jsp b/org.eclipse.help.webapp/advanced/err.jsp
index 1d9e46217..26efa2ad1 100644
--- a/org.eclipse.help.webapp/advanced/err.jsp
+++ b/org.eclipse.help.webapp/advanced/err.jsp
@@ -8,7 +8,7 @@
Contributors:
IBM Corporation - initial API and implementation
--%>
-<%@ page contentType="text/html; charset=UTF-8"%>
+<%@ page import="org.eclipse.help.internal.webapp.data.*" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -16,7 +16,17 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> Error </title>
</head>
-<body>
+<%
+String direction = "ltr";
+try{
+ if(UrlUtil.isRTL(request, response)){
+ direction = "rtl";
+ }
+}catch(Exception e){
+}
+%>
+
+<body dir="<%=direction%>">
<%@ page isErrorPage="true" %>
diff --git a/org.eclipse.help.webapp/basic/err.jsp b/org.eclipse.help.webapp/basic/err.jsp
index 0c1537711..05d504eb1 100644
--- a/org.eclipse.help.webapp/basic/err.jsp
+++ b/org.eclipse.help.webapp/basic/err.jsp
@@ -8,7 +8,7 @@
Contributors:
IBM Corporation - initial API and implementation
--%>
-<%@ page contentType="text/html; charset=UTF-8"%>
+<%@ page import="org.eclipse.help.internal.webapp.data.*" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
@@ -16,7 +16,17 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> Error </title>
</head>
-<body>
+<%
+String direction = "ltr";
+try{
+ if(UrlUtil.isRTL(request, response)){
+ direction = "rtl";
+ }
+}catch(Exception e){
+}
+%>
+
+<body dir="<%=direction%>">
<%@ page isErrorPage="true" %>

Back to the top