index.jsp

来自「RESIN 3.2 最新源码」· JSP 代码 · 共 57 行

JSP
57
字号
<%@ page session="false" import="com.caucho.vfs.*, com.caucho.server.webapp.*" %><%--   This is the default start page for the Resin server.  You can replace it as you wish, the documentation will  still be available as /resin-doc if it is installed.  --%><%/** * See if the resin-doc webapp is installed */boolean hasResinDoc = false;boolean hasOrientation = false;ServletContext docApp = application.getContext("/resin-doc");  if (docApp != null) {  String rp = docApp.getRealPath("index.xtp");  if (rp != null && (new java.io.File(rp)).exists())    hasResinDoc = true;  if (hasResinDoc) {    rp = docApp.getRealPath("orientation.xtp");    if (rp != null && (new java.io.File(rp)).exists())      hasOrientation = true;  }}%><html><head><title>Resin&#174; Default Home Page</title></head><body><h1 style="background: #ccddff">Resin&#174; Default Home Page</h1>This is the default page for the Resin web server.<% if (hasResinDoc) { %><p>Documentation is available <a href="/resin-doc">here</a>.<p>Administration is available <a href="/resin-admin">here</a>.<% } else { %><p>The Resin documentation is normally found with the url  <i><%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %>/resin-doc</i>, but it does not appear to be installed at that location.<% }  %></body></html>

⌨️ 快捷键说明

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