⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checklibs.jsp

📁 cms是开源的框架
💻 JSP
字号:
<%@ page session="true" %><%	

    /*      
     * This page checks if all libraries required for the demo modules have been installed.
     */

String[] classNames = {
"org.opencms.frontend.templateone.CmsTemplateBean"
};

boolean missingClasses = false;

try {
	for (int i=0; i<classNames.length; i++) {

		// try to find all the named classes
		String className = classNames[i];
		Class.forName(className);
	}	
} catch (Throwable t) {
	missingClasses = true;
}

if (missingClasses) {
    // some classes are missing
%>

<div style="border: 1px solid red; padding: 5px; background-color: #CCFFCC;">
<p><b>PLEASE NOTE:</b> The required classes for the OpenCms 'templateone' demo could not be loaded!<br>
<i>In case you just did a setup, <b>you must now restart your servlet engine</b>.</i></p>
<p><span class="small">If you intentionally did not install the 'templateone' demo, please disregard this message.</span></p>
</div>
<%
}
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -