热词2
爬取实现热刺云的显示
<%@ page import="cvpr.cvpr" language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <!DOCTYPE html > <body lang="en"> <head> <meta charset="UTF-8" /> <title>888</title> </head> <style> .table11_6 table { width:100%; margin:15px 0; border:0; } .table11_6 th { background-color:#96C7ED; color:#000000 } .table11_6,.table11_6 th,.table11_6 td { font-size:0.95em; text-align:center; padding:4px; border-collapse:collapse; } .table11_6 th,.table11_6 td { border: 1px solid #73b4e7; border-width:1px 0 1px 0; border:2px inset #ffffff; } .table11_6 tr { border: 1px solid #ffffff; } .table11_6 tr:nth-child(odd){ background-color:#dcecf9; } .table11_6 tr:nth-child(even){ background-color:#ffffff; } </style> <body> <% String title=(String)request.getAttribute("title"); String keywords=(String)request.getAttribute("keywords"); int m=0; %> <% Object message = request.getAttribute("message"); if(message!=null && !"".equals(message)){ %> <script type="text/javascript"> alert("<%=request.getAttribute("message")%>"); </script> <%} %> <th>标题<%=title%></th> <th>关键词<%=keywords%>的查询如下</th> <table class=table11_6> <tr> </tr> <tr> <th>题目</th><th>链接</th><th>关键词</th> </tr> <c:forEach items='${c1}' var='item' varStatus='status'> <%m++; %> <tr> <td><a>${item.title}</a></td> <td><a href="${item.link}">原文</a></td> <td>${item.keywords}</td> <td><a href="Servlet?method=delete&id=${item.id}"}>删除</a></td> </tr> </c:forEach> </table> 共<%=m%>篇论文 </body> </html>
所需js文件
所导jar包