You can enter here a previously generated URL: <% if ( !imgurl.isEmpty()) { %>
You can use the following URL:
<img src="<%=imgurl %>" />
%@ 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 = ""; Object encodedAttribute = request.getAttribute("net.sourceforge.plantuml.servlet.encoded"); if (encodedAttribute != null) { encoded = encodedAttribute.toString(); if (!encoded.isEmpty()) { imgurl = host + contextRoot + "/img/" + 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.
You can use the following URL:
<img src="<%=imgurl %>" />