<%@ 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; } } %> Resin® Default Home Page

Resin® Default Home Page

This is the default page for the Resin web server. <% if (hasResinDoc) { %> <% if (hasOrientation) { %>

New users can start here. <% } %>

Documentation is available here.

Administration is available here. <% } else { %>

The Resin documentation is normally found with the url <%= request.getScheme() %>://<%= request.getServerName() %>:<%= request.getServerPort() %>/resin-doc, but it does not appear to be installed at that location. <% } %>