logview.jsp
1.3 KB
<%@ page session="false" language="java" pageEncoding="UTF-8" %>
<%@ page contentType="text/html; charset=utf-8" trimDirectiveWhitespaces="true" %>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<jsp:useBean id="ctx" type="com.dianping.cat.report.page.logview.Context" scope="request"/>
<jsp:useBean id="payload" type="com.dianping.cat.report.page.logview.Payload" scope="request"/>
<jsp:useBean id="model" type="com.dianping.cat.report.page.logview.Model" scope="request"/>
<a:body>
<res:useCss value="${res.css.local.logview_css}" target="head-css"/>
<res:useJs value="${res.js.local.logview_js}" target="head-js"/>
<c:choose>
<c:when test="${empty model.table}">
<div class="error">Sorry, the message is not there. It could be missing or archived.</div>
</c:when>
<c:otherwise>
<c:choose>
<c:when test="${payload.waterfall=='true'}">
<div> <a href="?domain=${model.domain}&waterfall=false">Text</a> Graph</div>
</c:when>
<c:otherwise>
<div> Text <a href="?domain=${model.domain}&waterfall=true">Graph</a></div>
</c:otherwise>
</c:choose>
${model.table}
</c:otherwise>
</c:choose>
<br>
</a:body>