1.1 --- a/src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt Thu May 13 10:23:37 2021 +0200 1.2 +++ b/src/main/kotlin/de/uapcore/lightpit/RequestMapping.kt Thu May 13 11:28:50 2021 +0200 1.3 @@ -108,9 +108,13 @@ 1.4 fun param(name: String): String? = request.getParameter(name) 1.5 fun paramArray(name: String): Array<String> = request.getParameterValues(name) ?: emptyArray() 1.6 1.7 + fun forward(jsp: String) { 1.8 + request.getRequestDispatcher(jspPath(jsp)).forward(request, response) 1.9 + } 1.10 + 1.11 fun render(page: String? = null) { 1.12 page?.let { contentPage = it } 1.13 - request.getRequestDispatcher(jspPath("site")).forward(request, response) 1.14 + forward("site") 1.15 } 1.16 1.17 fun renderCommit(location: String? = null) {