String mode = renderRequest.getParameter(MODE_KEY);
ApacheModel model = (ApacheModel)getModel(renderRequest);
if(mode == null || mode.equals("")) {
mode = getDefaultMode();
}
MultiPageAbstractHandler handler = (MultiPageAbstractHandler)helpers.get(mode);
try {
if(handler != null) {
handler.renderView(renderRequest, renderResponse, model);
}
} catch (Throwable e) {
}
// decode the paths in model object
model.setLogFilePath(model.getLogFilePath());
model.setWorkersPath(model.getWorkersPath());
renderRequest.setAttribute(getModelJSPVariableName(), model);
if(handler != null) {
handler.getView().include(renderRequest, renderResponse);
}
}