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

📄 engine.jsp

📁 java 写的一个新闻发布系统
💻 JSP
字号:
<%@page language = "java"%><%@page import = "java.util.*"%><%@page import="org.jahia.params.*" %><%@ taglib uri="JahiaLib" prefix="jahia" %><jahia:i18n /><jsp:useBean id="URL" class="java.lang.String" scope="request"/><jsp:useBean id="serverURL" class="java.lang.String" scope="request"/><jsp:useBean id="javaScriptPath" class="java.lang.String" scope="request"/><jsp:useBean id="engineTitle" class="java.lang.String" scope="request"/><jsp:useBean id="jspSource" class="java.lang.String" scope="request"/><%    // include pages    Properties includes = new Properties();    // shared jsp    includes.setProperty(	"close",						"/jsp/jahia/engines/shared/close.jsp");    includes.setProperty(	"cancel",						"/jsp/jahia/engines/shared/cancel.jsp");    includes.setProperty(	"apply",						"/jsp/jahia/engines/shared/apply.jsp");    includes.setProperty(	"not_editable_field",			"/jsp/jahia/engines/shared/not_editable_field.jsp");    // login engine    includes.setProperty(	"login",						"/jsp/jahia/engines/login/login.jsp");    includes.setProperty(	"bad_login",					"/jsp/jahia/engines/login/badlogin.jsp");    includes.setProperty(	"login_close",					"/jsp/jahia/engines/login/close.jsp");    // page properties engine    includes.setProperty(	"page_properties",				"/jsp/jahia/engines/pages/pageproperties.jsp");    // update field engine    includes.setProperty(	"update_field",					"/jsp/jahia/engines/updatefield/updatefield.jsp");    // add container engine    includes.setProperty(	"add_container",				"/jsp/jahia/engines/addcontainer/addcontainer.jsp");    // update container engine    includes.setProperty(	"update_container",				"/jsp/jahia/engines/updatecontainer/updatecontainer.jsp");    // delete container engine    includes.setProperty(	"delete_container",				"/jsp/jahia/engines/deletecontainer/deletecontainer.jsp");    // container list properties    includes.setProperty(	"container_list_properties",	"/jsp/jahia/engines/containerlistproperties/containerlistproperties.jsp");    // rights engine    includes.setProperty(	"manage_rights",				"/jsp/jahia/engines/rights/managerights.jsp");    includes.setProperty(	"manage_rights_close",			"/jsp/jahia/engines/rights/close.jsp");    // templates engine    includes.setProperty(	"manage_template",				"/jsp/jahia/engines/template/template.jsp");    // application roles manager engine    includes.setProperty(	"roles_manager",				"/jsp/jahia/engines/applications/applications.jsp");    includes.setProperty(	"roles_manager_close",			"/jsp/jahia/engines/applications/close.jsp");    // copy tree engine    includes.setProperty(	"copy_tree_choose_source",		"/jsp/jahia/engines/copytree/choose_source.jsp");    includes.setProperty(	"copy_tree_preview",			"/jsp/jahia/engines/copytree/preview.jsp");    includes.setProperty(	"copy_tree_close",				"/jsp/jahia/engines/copytree/close.jsp");    // filemanager engine    includes.setProperty(	"filemanager",					"/jsp/jahia/engines/filemanager/filemanager.jsp");    includes.setProperty(	"filemanager_fileupload",		"/jsp/jahia/engines/filemanager/fileupload.jsp");    includes.setProperty(	"filemanager_filedelete",		"/jsp/jahia/engines/filemanager/file_delete.jsp");    includes.setProperty(	"filemanager_error",			"/jsp/jahia/engines/filemanager/error.jsp");    includes.setProperty(	"filemanager_close",			"/jsp/jahia/engines/filemanager/close.jsp");    includes.setProperty(	"filemanager_reloadpage",		"/jsp/jahia/engines/filemanager/reloadpage.jsp");    includes.setProperty(   "selectUG",                  	"/jsp/jahia/engines/users/selectUG.jsp");    includes.setProperty(   "selectusers_close",            "/jsp/jahia/engines/users/close.jsp");    request.setAttribute(	"includes",includes);%><%    HashMap engineMap 	= (HashMap)request.getAttribute("org.jahia.engines.EngineHashMap");    String engineUrl    = (String) engineMap.get( "engineUrl" );    String URLSep       = (engineUrl.indexOf("?") == -1) ? "?" : "&" ;    String includePage  = includes.getProperty(jspSource);    ParamBean   jParams             = (ParamBean) engineMap.get( "jParams" );    String theURL       = (String) jParams.settings().getJahiaEnginesHttpPath();%><html><head><title>Jahia - <%=engineTitle%></title><link rel="stylesheet" href="<jahia:serverHttpPath /><jahia:engineResourceBundle resourceName="stylesheet" />" type="text/css"><script language="javascript" src="<%=javaScriptPath%>"></script><script language="javascript"><!--function check(){    // override this function if needed in subengine to perform form data check    // before submit !!!    return true;}function handleActionChange(){    var theAction = document.selector.theaction.selectedIndex;    document.mainForm.method = "POST";    document.mainForm.action = "<%=engineUrl%>" + "<%=URLSep%>screen=" +                               document.selector.theaction[theAction].value;    document.mainForm.submit();}function sendFormSave(){    document.mainForm.method = "POST";    document.mainForm.action = "<%=engineUrl%><%=URLSep%>screen=save";    if ( check() ){        document.mainForm.submit();    }}function sendFormApply(){    document.mainForm.method = "POST";    document.mainForm.action = "<%=engineUrl%><%=URLSep%>screen=apply";    if ( check() ){        document.mainForm.submit();    }}function sendFormCancel(){    document.mainForm.method = "POST";    document.mainForm.action = "<%=engineUrl%><%=URLSep%>screen=cancel";    if ( check() ){        document.mainForm.submit();    }}function changeField(fieldID){    document.mainForm.method = "POST";    document.mainForm.action = "<%=engineUrl%><%=URLSep%>screen=edit&fid=" + fieldID;    if ( check() ){        document.mainForm.submit();    }}function loomSubmitForm() {    if (submitCounter == 0) {        submitCounter++;        alert('Please wait while submitting form...');        return true;    } else {        alert('You have already submitted this form.');        return false;    }}document.onkeydown = keyDown;function keyDown() {    if (document.all) {        var ieKey = event.keyCode;        if (ieKey == 13 && event.ctrlKey) { sendFormSave(); }        if (ieKey == 87 && event.ctrlKey) { sendFormCancel(); }    }}window.onload = function() {    scroll(0, 0);}window.onunload = closeEngineWin;//--></script></head><body class="text" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table width="100%" height="63" border="0" cellspacing="0" cellpadding="0">    <tr>        <td width="126" height="63"><img src="<jahia:serverHttpPath /><jahia:engineResourceBundle resourceName="headerLogoImg" />" width="126" height="63"></td>        <td height="63" width="100%" background="<jahia:serverHttpPath /><jahia:engineResourceBundle resourceName="headerBgImg" />">&nbsp;</td>    </tr></table><br><!-- include page start --><jsp:include page="<%=includePage%>" flush="true"/><!-- include page ends --></body></html>

⌨️ 快捷键说明

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