use of org.lastaflute.web.ruts.renderer.JspHtmlRenderingProvider in project fess by codelibs.
the class FessFwAssistantDirector method prepareWebDirection.
// ===================================================================================
// Web
// =====
@Override
protected void prepareWebDirection(final FwWebDirection direction) {
direction.directRequest(createUserLocaleProcessProvider(), createUserTimeZoneProcessProvider());
direction.directCookie(createCookieResourceProvider());
direction.directAdjustment(createActionAdjustmentProvider());
direction.directMessage(createMessageNameList(), "fess_label");
direction.directApiCall(createApiFailureHook());
direction.directMultipart(() -> new FessMultipartRequestHandler());
direction.directHtmlRendering(new JspHtmlRenderingProvider() {
@Override
protected String getShowErrorsForwardPath(final ActionRuntime runtime) {
if (FessAdminAction.class.isAssignableFrom(runtime.getActionType())) {
return "/admin/error/error.jsp";
} else {
return "/error/system.jsp";
}
}
;
});
}
Aggregations