summaryrefslogtreecommitdiff
path: root/BKUOnline/src/main/webapp
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-05-12 14:43:16 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-05-12 14:43:16 +0000
commit284e7da6f01cb3b0e7269fe6476a8e2eeb77b8c2 (patch)
tree38c9c6c8a88da9445cc7f7d4e9f402c0688bf039 /BKUOnline/src/main/webapp
parent2ddbaa1cee759008c703e1fdf0b49e49c8ac67da (diff)
downloadmocca-284e7da6f01cb3b0e7269fe6476a8e2eeb77b8c2.tar.gz
mocca-284e7da6f01cb3b0e7269fe6476a8e2eeb77b8c2.tar.bz2
mocca-284e7da6f01cb3b0e7269fe6476a8e2eeb77b8c2.zip
mocca catalina.policy
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@352 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUOnline/src/main/webapp')
-rw-r--r--BKUOnline/src/main/webapp/applet.jsp4
-rw-r--r--BKUOnline/src/main/webapp/help.jsp19
2 files changed, 14 insertions, 9 deletions
diff --git a/BKUOnline/src/main/webapp/applet.jsp b/BKUOnline/src/main/webapp/applet.jsp
index 3da17066..4b0f2240 100644
--- a/BKUOnline/src/main/webapp/applet.jsp
+++ b/BKUOnline/src/main/webapp/applet.jsp
@@ -40,7 +40,7 @@
String guiStyle = (String) session.getAttribute("appletGuiStyle");
String locale = (String) session.getAttribute("locale");
String extension = (String) session.getAttribute("extension");
-
+
String appletClass, appletArchive;
if ("activation".equals(extension)) {
appletArchive = "BKUAppletExt";
@@ -66,7 +66,7 @@
RandomStringUtils.randomAlphanumeric(16);
appletArchive += rand;
}
-
+
%>
<body id="appletpage" style="width:<%=width%>">
<script>
diff --git a/BKUOnline/src/main/webapp/help.jsp b/BKUOnline/src/main/webapp/help.jsp
index d7dbf0ef..5b39547e 100644
--- a/BKUOnline/src/main/webapp/help.jsp
+++ b/BKUOnline/src/main/webapp/help.jsp
@@ -18,16 +18,21 @@
pageEncoding="UTF-8"%>
<%@ page import="java.io.File"%>
<%
+ String path;
+ String helpDir = "/helpfiles";
+
String pathInfo[] = (request.getPathInfo() != null) ? request
.getPathInfo().split("/") : new String[] {};
- String language = pathInfo[1].split("_")[0];
- String filename = pathInfo[2];
- String helpDir = "/helpfiles";
- String path;
- if ((new File(helpDir + "/" + language.toLowerCase())).isDirectory()) {
- path = helpDir + "/" + language.toLowerCase() + "/" + filename;
+ if (pathInfo.length < 2) {
+ path = helpDir + "/index.html";
} else {
- path = helpDir + "/de/" + filename;
+ String language = pathInfo[1].split("_")[0];
+ String filename = pathInfo[2];
+ if ((new File(helpDir + "/" + language.toLowerCase())).isDirectory()) {
+ path = helpDir + "/" + language.toLowerCase() + "/" + filename;
+ } else {
+ path = helpDir + "/de/" + filename;
+ }
}
System.out.println(path);
%>