*/
protected ModelAndView handleJAMWikiRequest(HttpServletRequest request,
HttpServletResponse response, ModelAndView next, WikiPageInfo pageInfo)
throws Exception {
if (!WikiUtil.isFirstUse()) {
throw new WikiException(new WikiMessage("setup.error.notrequired"));
}
String function = (request.getParameter("function") == null) ? request
.getParameter("override") : request.getParameter("function");
if (function == null) {
function = "";
}
try {
if (!SystemUtils.isJavaVersionAtLeast(MINIMUM_JDK_VERSION)) {
throw new WikiException(new WikiMessage("setup.error.jdk", Integer
.valueOf(MINIMUM_JDK_VERSION).toString(), System
.getProperty("java.version")));
}
if (!StringUtils.isBlank(function) && initialize(request, next, pageInfo)) {
ServletUtil.redirect(next, WikiBase.DEFAULT_VWIKI, Environment