diff -r 89b3320557e2 -r 1dc56ab7845e src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java --- a/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java Mon Jan 04 12:45:22 2021 +0100 +++ b/src/main/java/de/uapcore/lightpit/AbstractLightPITServlet.java Mon Jan 04 12:45:46 2021 +0100 @@ -275,7 +275,7 @@ private Optional parseParameter(String paramValue, Class clazz) { if (paramValue == null) return Optional.empty(); if (clazz.equals(Boolean.class)) { - if (paramValue.toLowerCase().equals("false") || paramValue.equals("0")) { + if (paramValue.equalsIgnoreCase("false") || paramValue.equals("0")) { return Optional.of((T) Boolean.FALSE); } else { return Optional.of((T) Boolean.TRUE); @@ -349,6 +349,13 @@ } } + protected void setAttributeFromParameter(HttpServletRequest req, String name) { + final var parm = req.getParameter(name); + if (parm != null) { + req.setAttribute(name, parm); + } + } + private String sanitizeRequestPath(HttpServletRequest req) { return Optional.ofNullable(req.getPathInfo()).orElse("/"); }