From ccc71e7cd4427acf51e6d381f86c612e933dc663 Mon Sep 17 00:00:00 2001 From: Maxime Sinclair Date: Wed, 16 Oct 2013 12:51:14 +0200 Subject: [PATCH] [TASK] Better usage of JSTL Old core_rt reference deleted --- src/main/webapp/index.jsp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index 69c08e3..1e636cb 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -1,5 +1,5 @@ <%@ page info="index" contentType="text/html; charset=utf-8" pageEncoding="utf-8" session="false" %> -<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <% String contextRoot = request.getContextPath(); String host = "http://" + request.getServerName() + ":" + request.getServerPort(); @@ -8,7 +8,6 @@ String umltext = ""; String imgurl = ""; String svgurl = ""; String txturl = ""; -String mapurl = ""; Object mapNeeded = request.getAttribute("net.sourceforge.plantuml.servlet.mapneeded"); Object encodedAttribute = request.getAttribute("net.sourceforge.plantuml.servlet.encoded"); if (encodedAttribute != null) { @@ -18,7 +17,7 @@ if (encodedAttribute != null) { svgurl = host + contextRoot + "/svg/" + encoded; txturl = host + contextRoot + "/txt/" + encoded; if (mapNeeded != null) { - mapurl = host + contextRoot + "/map/" + encoded; + pageContext.setAttribute("mapurl", host + contextRoot + "/map/" + encoded); } } } @@ -69,13 +68,13 @@ if (decodedAttribute != null) { View as SVG  View as ASCII Art  <% if (mapNeeded != null) { %> - View Map Data + ">View Map Data <% } //endif %>

<% if (mapNeeded != null) { %> PlantUML diagram - + <% } else { %> PlantUML diagram