You can enter here a previously generated URL: <% if ( !imgurl.isEmpty()) { %>
View as SVG View as ASCII Art
<% } //endif %>
%@ page info="index" contentType="text/html; charset=utf-8" pageEncoding="utf-8" session="false" %> <% String contextRoot = request.getContextPath(); String host = "http://" + request.getServerName() + ":" + request.getServerPort(); String encoded = ""; String umltext = ""; String imgurl = ""; String svgurl = ""; String txturl = ""; Object encodedAttribute = request.getAttribute("net.sourceforge.plantuml.servlet.encoded"); if (encodedAttribute != null) { encoded = encodedAttribute.toString(); if (!encoded.isEmpty()) { imgurl = host + contextRoot + "/img/" + encoded; svgurl = host + contextRoot + "/svg/" + encoded; txturl = host + contextRoot + "/txt/" + encoded; } } Object decodedAttribute = request.getAttribute("net.sourceforge.plantuml.servlet.decoded"); if (decodedAttribute != null) { umltext = decodedAttribute.toString(); } %>
This application provides a servlet which serves images created by PlantUML.
<% } //endif %>