update jetty and tomcat to latest version
This commit is contained in:
@@ -1,22 +1,24 @@
|
||||
<%@ page info="index" contentType="text/html; charset=utf-8" pageEncoding="utf-8" session="false" %>
|
||||
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
||||
|
||||
<c:set var="cfg" value="${applicationScope['cfg']}" />
|
||||
<c:set var="contextroot" value="${pageContext.request.contextPath}" />
|
||||
<c:if test="${(pageContext.request.scheme == 'http' && pageContext.request.serverPort != 80) ||
|
||||
(pageContext.request.scheme == 'https' && pageContext.request.serverPort != 443) }">
|
||||
<c:set var="port" value=":${pageContext.request.serverPort}" />
|
||||
</c:if>
|
||||
<c:set var="scheme" value="${(not empty header['x-forwarded-proto']) ? header['x-forwarded-proto'] : pageContext.request.scheme}" />
|
||||
<c:set var="hostpath" value="${scheme}://${pageContext.request.serverName}${port}${contextroot}" />
|
||||
<c:if test="${!empty encoded}">
|
||||
<c:set var="imgurl" value="${hostpath}/png/${encoded}" />
|
||||
<c:set var="svgurl" value="${hostpath}/svg/${encoded}" />
|
||||
<c:set var="txturl" value="${hostpath}/txt/${encoded}" />
|
||||
<c:if test="${!empty mapneeded}">
|
||||
<c:set var="mapurl" value="${hostpath}/map/${encoded}" />
|
||||
</c:if>
|
||||
</c:if>
|
||||
<%
|
||||
// diagram sources
|
||||
String decoded = request.getAttribute("decoded").toString();
|
||||
String encoded = request.getAttribute("encoded").toString();
|
||||
// properties
|
||||
boolean showSocialButtons = (boolean)request.getAttribute("showSocialButtons");
|
||||
boolean showGithubRibbon = (boolean)request.getAttribute("showGithubRibbon");
|
||||
// URL base
|
||||
String hostpath = request.getAttribute("hostpath").toString();
|
||||
// image URLs
|
||||
boolean hasImg = (boolean)request.getAttribute("hasImg");
|
||||
String imgurl = request.getAttribute("imgurl").toString();
|
||||
String svgurl = request.getAttribute("svgurl").toString();
|
||||
String txturl = request.getAttribute("txturl").toString();
|
||||
String mapurl = request.getAttribute("mapurl").toString();
|
||||
// map for diagram source if necessary
|
||||
boolean hasMap = (boolean)request.getAttribute("hasMap");
|
||||
String map = request.getAttribute("map").toString();
|
||||
%>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
@@ -25,73 +27,67 @@
|
||||
<meta http-equiv="expires" content="0" />
|
||||
<meta http-equiv="pragma" content="no-cache" />
|
||||
<meta http-equiv="cache-control" content="no-cache, must-revalidate" />
|
||||
<link rel="icon" href="${hostpath}/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="shortcut icon" href="${hostpath}/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="${hostpath}/plantuml.css" />
|
||||
<link rel="stylesheet" href="${hostpath}/webjars/codemirror/5.63.0/lib/codemirror.css" />
|
||||
<script src="${hostpath}/webjars/codemirror/5.63.0/lib/codemirror.js"></script>
|
||||
<link rel="icon" href="<%= hostpath %>/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="shortcut icon" href="<%= hostpath %>/favicon.ico" type="image/x-icon"/>
|
||||
<link rel="stylesheet" href="<%= hostpath %>/plantuml.css" />
|
||||
<link rel="stylesheet" href="<%= hostpath %>/webjars/codemirror/5.63.0/lib/codemirror.css" />
|
||||
<script src="<%= hostpath %>/webjars/codemirror/5.63.0/lib/codemirror.js"></script>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
document.myCodeMirror = CodeMirror.fromTextArea(
|
||||
document.getElementById("text"),
|
||||
{lineNumbers: true}
|
||||
{ lineNumbers: true }
|
||||
);
|
||||
};
|
||||
</script>
|
||||
<title>PlantUMLServer</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="header">
|
||||
<%-- PAGE TITLE --%>
|
||||
<h1>PlantUML Server</h1>
|
||||
<c:if test="${cfg['SHOW_SOCIAL_BUTTONS'] eq 'on' }">
|
||||
<%@ include file="resource/socialbuttons1.html" %>
|
||||
</c:if>
|
||||
<c:if test="${cfg['SHOW_GITHUB_RIBBON'] eq 'on' }">
|
||||
<%@ include file="resource/githubribbon.html" %>
|
||||
</c:if>
|
||||
<p>Create your <a href="https://plantuml.com">PlantUML</a> diagrams directly in your browser !</p>
|
||||
</div>
|
||||
<div id="content">
|
||||
<%-- CONTENT --%>
|
||||
<form method="post" accept-charset="UTF-8" action="${contextroot}/form">
|
||||
<p>
|
||||
<textarea id="text" name="text" cols="120" rows="10"><c:out value="${decoded}"/></textarea>
|
||||
<input type="submit" />
|
||||
</p>
|
||||
</form>
|
||||
<hr/>
|
||||
<p>You can enter here a previously generated URL:</p>
|
||||
<form method="post" action="${contextroot}/form">
|
||||
<p>
|
||||
<input name="url" type="text" size="150" value="${imgurl}" />
|
||||
<br/>
|
||||
<input type="submit"/>
|
||||
</p>
|
||||
</form>
|
||||
<c:if test="${!empty imgurl}">
|
||||
<div id="header">
|
||||
<%-- PAGE TITLE --%>
|
||||
<h1>PlantUML Server</h1>
|
||||
<% if (showSocialButtons) { %>
|
||||
<%@ include file="resource/socialbuttons1.html" %>
|
||||
<% } %>
|
||||
<% if (showGithubRibbon) { %>
|
||||
<%@ include file="resource/githubribbon.html" %>
|
||||
<% } %>
|
||||
<p>Create your <a href="https://plantuml.com">PlantUML</a> diagrams directly in your browser!</p>
|
||||
</div>
|
||||
<div id="content">
|
||||
<%-- CONTENT --%>
|
||||
<form method="post" accept-charset="utf-8" action="<%= hostpath %>/form">
|
||||
<p>
|
||||
<textarea id="text" name="text" cols="120" rows="10"><%= decoded %></textarea>
|
||||
<input type="submit" />
|
||||
</p>
|
||||
</form>
|
||||
<hr/>
|
||||
<a href="${svgurl}">View as SVG</a>
|
||||
<a href="${txturl}">View as ASCII Art</a>
|
||||
<c:if test="${!empty mapurl}">
|
||||
<a href="${mapurl}">View Map Data</a>
|
||||
</c:if>
|
||||
<c:if test="${cfg['SHOW_SOCIAL_BUTTONS'] == 'on' }">
|
||||
<%@ include file="resource/socialbuttons2.jspf" %>
|
||||
</c:if>
|
||||
<p id="diagram">
|
||||
<c:choose>
|
||||
<c:when test="${!empty mapurl}">
|
||||
<img src="${imgurl}" alt="PlantUML diagram" />
|
||||
</c:when>
|
||||
<c:otherwise>
|
||||
<img src="${imgurl}" alt="PlantUML diagram" />
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</p>
|
||||
</c:if>
|
||||
</div>
|
||||
<%-- FOOTER --%>
|
||||
<%@ include file="footer.jspf" %>
|
||||
<p>You can enter here a previously generated URL:</p>
|
||||
<form method="post" action="<%= hostpath %>/form">
|
||||
<p>
|
||||
<input name="url" type="text" size="150" value="<%= imgurl %>" />
|
||||
<br/>
|
||||
<input type="submit"/>
|
||||
</p>
|
||||
</form>
|
||||
<% if (hasImg) { %>
|
||||
<hr/>
|
||||
<a href="<%= svgurl %>">View as SVG</a>
|
||||
<a href="<%= txturl %>">View as ASCII Art</a>
|
||||
<% if (hasMap) { %>
|
||||
<a href="<%= mapurl %>">View Map Data</a>
|
||||
<% } %>
|
||||
<% if (showSocialButtons) { %>
|
||||
<%@ include file="resource/socialbuttons2.jspf" %>
|
||||
<% } %>
|
||||
<p id="diagram">
|
||||
<img src="<%= imgurl %>" alt="PlantUML diagram" />
|
||||
<%= map %>
|
||||
</p>
|
||||
<% } %>
|
||||
</div>
|
||||
<%-- FOOTER --%>
|
||||
<%@ include file="footer.jspf" %>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user