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

📄 main.jsp

📁 java 写的一个新闻发布系统
💻 JSP
字号:
<%@page language = "java" %><%@page import = "java.util.*" %><%@page import = "org.jahia.services.sites.JahiaSite" %><%@page import="org.jahia.bin.*"%><%    Properties includes = new Properties();    includes.setProperty("list","/jsp/jahia/administration/homepages/include/list.jsp");    includes.setProperty("add","/jsp/jahia/administration/homepages/include/add.jsp");    includes.setProperty("addlink","/jsp/jahia/administration/homepages/include/addlink.jsp");    includes.setProperty("addcopy","/jsp/jahia/administration/homepages/include/addcopy.jsp");    includes.setProperty("addnew","/jsp/jahia/administration/homepages/include/addnew.jsp");    includes.setProperty("detail","/jsp/jahia/administration/homepages/include/detail.jsp");    includes.setProperty("detaillink","/jsp/jahia/administration/homepages/include/addlink.jsp");    includes.setProperty("detailcopy","/jsp/jahia/administration/homepages/include/addcopy.jsp");    includes.setProperty("detailnew","/jsp/jahia/administration/homepages/include/addnew.jsp");    includes.setProperty("delete","/jsp/jahia/administration/homepages/include/delete.jsp");    includes.setProperty("error","/jsp/jahia/administration/homepages/include/error.jsp");    includes.setProperty("options","/jsp/jahia/administration/homepages/include/options.jsp");    request.setAttribute("includes",includes);%><jsp:useBean id="url"        	class="java.lang.String"   	scope="request"/>          <% // http files path. %><jsp:useBean id="focus"      	class="java.lang.String"   	scope="request"/>          <% // autofocus input name in the form. %><jsp:useBean id="title"      	class="java.lang.String"   	scope="request"/>          <% // title  %><jsp:useBean id="msg"        	class="java.lang.String"   	scope="request"/>          <% // bottom message [copyright or advertise]. %><jsp:useBean id="currentSite"  	class="JahiaSite"  	scope="request"/>          <% // the current site %><jsp:useBean id="subAction"		class="java.lang.String"      scope="request"/>     <% // the default screen %><jsp:useBean id="go"			class="java.lang.String"      scope="request"/>     <% // the default event %><%    Boolean isLynx = (Boolean) request.getAttribute( "isLynx" );    Integer navigator = (Integer) request.getAttribute( "navigator" );    String  includeJsp = (String) request.getParameter("includejsp");    String  includePage = includes.getProperty(includeJsp);    if ( includePage == null )        includePage = includes.getProperty("error");    int inputSize   = navigator.intValue() == 0 ? 65 : 40;    request.setAttribute( "input", new Integer(inputSize).toString() );%><html><head>    <title>Jahia - Manage Homepages</title>    <link rel="stylesheet" href="<%=url%>/css/jahia.css" type="text/css">    <script language="javascript" src="<%=url%>/../javascript/jahia.js"></script>    <script language="javascript">        function focus() {          <%if(!focus.equals("-none-")){%>            document.formular.<%=focus%>.focus();          <%}%>        }        function submitFormular(sub,go)        {            var theMatrix = Math.round(Math.random() * 10000);            document.formular.action='<%=JahiaAdministration.composeActionURL(request,response,"homepages","&sub=")%>'+sub+'&go='+go+'&matrix='+theMatrix;            document.formular.method='POST';            document.formular.submit();        }    </script></head><body class="install" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="focus();" onUnload="closeEngineWin();" onClose="closeEngineWin();"><center><br><br><br><table cellpadding="1" cellspacing="0" bgcolor="#000000" width="530" border="0"><tr>    <td>        <table cellpadding="0" cellspacing="0" width="530" border="0">        <tr>            <td bgcolor="#92A4AD">                <table width="530" height="63" border="0" cellspacing="0" cellpadding="0">                <tr>                    <td width="126" height="63"><img src="<%=url%>/images/header.gif" width="126" height="63" alt=""></td>                    <td width="404" height="63" background="<%=url%>/images/header_bg.gif">&nbsp;</td>                </tr>                <tr>                    <td align="right" class="text" colspan="2">                    <% if ( currentSite!= null ){%>site&nbsp;<%=currentSite.getServerName()%>&nbsp;&nbsp;<%}%>::&nbsp;&nbsp;<%=title%>&nbsp;&nbsp;::</b>&nbsp;&nbsp;&nbsp;&nbsp;                </tr>                </table>                <br><br>                <table cellpadding="2" cellspacing="0" border="0" width="530">                <tr>                    <td colspan="3" width="530">&nbsp;</td>                </tr>                    <form name="formular" method="post" action="<%=JahiaAdministration.composeActionURL(request,response,"homepages","&sub=" + subAction + "&go=" + go)%>">                <tr>                    <td width="80">&nbsp;</td>                    <td width="400" class="text">                    <!-- include page start -->                    <jsp:include page="<%=includePage%>" flush="true"/>                    <!-- include page ends -->                    </td>                    <td width="50">&nbsp;</td>                </tr>                   </form>                <tr>                    <td colspan="3" align="right">                        &nbsp;<br><br><br>                        <font class="text2"><%=msg%>&nbsp;&nbsp;&nbsp;</font>                    </td>                </tr>                <tr>                    <td colspan="3">&nbsp;</td>                </tr>                </table>            </td>        </tr>        </table>    </td></tr></table><br><br>&nbsp;</center></body></html>

⌨️ 快捷键说明

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