public static String defaultHtml ( HttpServletRequest request ) { CmsObject cms = CmsFlexController . getController ( request ) . getCmsObject ( ) ; // We only want the big red warning in Offline mode if ( cms . getRequestContext ( ) . getCurrentProject ( ) . isOnlineProject ( ) ) { return "<div><!--Dynamic function not configured--></div>" ; } else { Locale locale = OpenCms . getWorkplaceManager ( ) . getWorkplaceLocale ( cms ) ; String message = Messages . get ( ) . getBundle ( locale ) . key ( Messages . GUI_FUNCTION_DEFAULT_HTML_0 ) ; return "<div style=\"border: 2px solid red; padding: 10px;\">" + message + "</div>" ; } }
Returns the default output for functions without configured JSPs .