⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clickstreams.jsp

📁 基于Maven的质量保证自动化环境配置和演示程序
💻 JSP
字号:
<%@ include file="/common/taglibs.jsp"%><%@ page import="java.util.*,com.opensymphony.clickstream.Clickstream" %><%Map clickstreams = (Map) application.getAttribute("clickstreams");String showbots = "false";if (request.getParameter("showbots") != null){    if (request.getParameter("showbots").equals("true"))        showbots = "true";    else if (request.getParameter("showbots").equals("both"))        showbots = "both";}%><head>    <title><fmt:message key="clickstreams.title"/></title>    <meta name="heading" content="<fmt:message key='clickstreams.heading'/>"/>    <meta name="menu" content="AdminMenu"/></head><a href="?showbots=false">No Bots</a> |<a href="?showbots=true">All Bots</a> |<a href="?showbots=both">Both</a><p><% if (clickstreams.keySet().size() == 0) { %>    No clickstreams in progress.<% } %><%Iterator it = clickstreams.keySet().iterator();int count = 0;while (it.hasNext()){    String key = (String)it.next();    Clickstream stream = (Clickstream)clickstreams.get(key);    if (showbots.equals("false") && stream.isBot())    {        continue;    }    else if (showbots.equals("true") && !stream.isBot())    {        continue;    }    count++;    try {%><%= count %>. <a href="viewstream.jsp?sid=<%= key %>"><b><%= (stream.getHostname() != null && !stream.getHostname().equals("") ? stream.getHostname() : "Stream") %></b></a> [<%= stream.getStream().size() %> reqs]<br /><%    }    catch (Exception e)    {%>    An error occurred - <%= e %><br /><%    }}%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -