Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
60 lines (53 sloc) 2 KB
<html>
<head>
<%@page session="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<title>DDMS Builder Result | DDMSence</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="The open-source Java library for the DoD Discovery Metadata Specification (DDMS)">
<meta name="viewport" content="width=device-width,initial-scale=1">
<script type="text/javascript" src="./shared/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
var current = "xml";
function changeFormat(newFormat) {
$("#" + current).hide();
$("#" + newFormat).show();
current = newFormat;
}
</script>
</head>
<body>
<%@ include file="../shared/header.jspf" %>
<h1>DDMS Builder Results</h1>
<c:forEach items="${warnings}" var="warning" varStatus="rowInfo">
<li><b>${warning.type}</b> at <code><c:out value="${warning.locator}" /></code>: <c:out value="${warning.text}" /></li>
</c:forEach>
<c:if test="${not empty xml}">
<form>
<label id="lformat" for="selectFormat">Format:</label>
<span class="formElement">
<select name="selectFormat" id="selectFormat" onchange="changeFormat(this.options[this.selectedIndex].value)">
<option value="html">HTML</option>
<option value="json">JSON</option>
<option value="text">Text</option>
<option value="xml" selected="true">XML</option>
</select>
</span>
</form>
<div id="xml">
<pre class="brush: xml"><c:out value="${xml}" escapeXml="true" /></pre>
</div>
<div id="html" style="display: none;">
<pre class="brush: xml"><c:out value="${html}" escapeXml="true" /></pre>
</div>
<div id="text" style="display: none;">
<pre class="brush: xml"><c:out value="${text}" escapeXml="true" /></pre>
</div>
<div id="json" style="display: none;">
<pre class="brush: javascript"><c:out value="${json}" escapeXml="true" /></pre>
</div>
</c:if>
<div class="clear"></div>
<%@ include file="../shared/footer.jspf" %>
</body>
</html>