diff options
Diffstat (limited to 'BKUOnline/src/main/webapp/help.jsp')
| -rw-r--r-- | BKUOnline/src/main/webapp/help.jsp | 19 | 
1 files changed, 12 insertions, 7 deletions
| 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);  %> | 
