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

📄 clickstreams.jsp

📁 JiveJdon 3.0 is the application of Jdon Framework 1.4 final.
💻 JSP
字号:
<%@ page import="java.util.*,                 com.opensymphony.clickstream.Clickstream" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><%    final Map clickstreams = (Map) application.getAttribute("clickstreams");    String showbots = "false";    if ("true".equalsIgnoreCase(request.getParameter("showbots")))        showbots = "true";    else if ("both".equalsIgnoreCase(request.getParameter("showbots")))        showbots = "both";%><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">    <head>        <title>Active Clickstreams</title>    </head>    <body>        <h3>Active Clickstreams</h3>        <p>            <a href="?showbots=false">User Streams</a> |            <a href="?showbots=true">Bot Streams</a> |            <a href="?showbots=both">Both</a>        </p>        <% if (clickstreams.isEmpty()) { %>        <p>No clickstreams in progress.</p>        <% } else { %>        <ol>        <%            synchronized(clickstreams) {                Iterator it = clickstreams.keySet().iterator();                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;                    }                    try {                %>                <li><a href="viewstream.jsp?sid=<%= key %>"><b><%= (stream.getHostname() != null && !stream.getHostname().equals("") ? stream.getHostname() : "Stream") %></b></a> <small>[<%= stream.getStream().size() %> reqs]</small></li>                <%                    }                    catch (Exception e)                    {                %>                    An error occurred - <%= e %><br>                <%                    }                }            }        }        %>        </ol>    </body></html>

⌨️ 快捷键说明

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