diff options
Diffstat (limited to 'BKUOnline/src/main/webapp')
-rw-r--r-- | BKUOnline/src/main/webapp/applet.jsp | 4 | ||||
-rw-r--r-- | BKUOnline/src/main/webapp/help.jsp | 19 |
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); %> |