Skip to content

Commit

Permalink
Webapp - Added env_debug-info.jsp
Browse files Browse the repository at this point in the history
  • Loading branch information
dzc34 committed Jan 28, 2018
1 parent d388fde commit 88f98ee
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
8 changes: 1 addition & 7 deletions webapp/src/main/webapp/WEB-INF/pages/form.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,9 @@

<%-- DEBUG contrast-finder.conf --%>
<c:if test="${env == 'debug'}">
<div style="background-color:pink; padding: 0.4em;">
env <strong> ${env} </strong> <br>
defaultAlgorithm <strong> ${defaultAlgorithm} </strong> <br>
cookie.algo <strong> ${cookie.algo.value} </strong> <br>
algo <strong> ${algo} </strong> <br>
</div>
<%@include file='/WEB-INF/template/env_debug-info.jspf' %>
</c:if>


<%-- ===== FORM ========================================================================================= --%>
<div id="set-up-form" class="row">
<div class="col-lg-12">
Expand Down
21 changes: 21 additions & 0 deletions webapp/src/main/webapp/WEB-INF/template/env_debug-info.jspf
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page pageEncoding="UTF-8" %>

<c:set var="debugJavaVersion"><%= System.getProperty("java.version") %></c:set>
<c:set var="debugTomcatVersion"><%= application.getServerInfo() %></c:set>
<c:set var="debugServletVersion"><%= application.getMajorVersion() %>.<%= application.getMinorVersion() %></c:set>
<c:set var="debugJspVersion"><%=JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %></c:set>
<div style="background-color:pink; padding: 0.4em;display: flex;justify-content: space-between">
<p>
env <strong> ${env} </strong> <br>
defaultAlgorithm <strong> ${defaultAlgorithm} </strong> <br>
cookie.algo <strong> ${cookie.algo.value} </strong> <br>
algo <strong> ${algo} </strong>
</p>
<p>
Java <strong> ${debugJavaVersion} </strong> <br>
Tomcat : <strong> ${debugTomcatVersion} </strong> <br>
Servlet specification : <strong> ${debugServletVersion} </strong> <br>
JSP : <strong> ${debugJspVersion} </strong> <br>
</p>
</div>

0 comments on commit 88f98ee

Please sign in to comment.