- Fix help.jsp mapping to language

- Fix nowebapp.jsp for non-started webapps
- Fix nowebapp.jsp for url /foo for non-started webapp foo
This commit is contained in:
zzz
2011-12-24 05:26:56 +00:00
parent 5a4becba68
commit 0fb9096096
6 changed files with 24 additions and 45 deletions

View File

@@ -76,9 +76,7 @@ public class LocaleWebAppHandler extends WebAppContext
if (lang != null && lang.length() > 0 && !lang.equals("en")) {
String testPath = pathInContext.substring(0, len - 4) + '_' + lang + ".jsp";
// Do we have a servlet for the new path that isn't the catchall *.jsp?
//Map.Entry servlet = getHolderEntry(testPath);
///////////////////////////////
Map.Entry servlet = null;
Map.Entry servlet = getServletHandler().getHolderEntry(testPath);
if (servlet != null) {
String servletPath = (String) servlet.getKey();
if (servletPath != null && !servletPath.startsWith("*")) {