-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleft.jsp
More file actions
54 lines (52 loc) · 1.33 KB
/
left.jsp
File metadata and controls
54 lines (52 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<%@page import="java.util.Collection"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.HashMap"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%
ArrayList<String> colorlist=new ArrayList();
ArrayList<String> ViewUrl=new ArrayList();
colorlist.add("#C71585");
colorlist.add("#556b2f");
colorlist.add("#191970");
colorlist.add("#dc143c");
colorlist.add("#9932cc");
request.setCharacterEncoding("utf-8");
String color = (String)request.getAttribute("postColor");
String lab = (String)request.getAttribute("lab");
System.out.println(lab);
HashMap<String,HashMap<String,String>> WebPage=(HashMap)session.getAttribute("WebPage");
HashMap<String,ArrayList> ClustResult = (HashMap)session.getAttribute("ClustResult");
HashMap<String,ArrayList> DocLabels = (HashMap)session.getAttribute("DocLabels");
%>
<script type="text/javascript">
function right(){
if(<%=color%>==null){
parent.right.location.href="./right.jsp";
}
}
</script>
<meta charset="utf-8">
</head>
<body onload="right();">
<font size="2px">
<table>
<%
for (String url:WebPage.keySet()){
for (String title:WebPage.get(url).keySet()){
%>
<tr><td>
<a href=<%=url%> target=_blank><%=title%></a><br>
<%=WebPage.get(url).get(title)%>
</td></tr>
<%
}
}
%>
</table>
</font>
</body>
</html>